Hello people at the speartime i have beside studies im currently working on a quadcopter, but im kindoff stuck. I just cant seem to understand how to combine the angular rate from gyro and angle from accelerometer. Yes i know that commonly it is used kalman/complementary filter but i still cant seem to understand how its done(a mathematical explenation would be prefferd )

Thanks for anny help!