how to get roll pitch and yaw by combining gyroscope and accelerometer data?
so i am new to the field and am doing a drone using esp32 and gy-85. after much work i got the accelerometer working (i think ) and gyroscope but not at the same time (also i think ) . i want to combine their data to get 1 roll 1 pitch and 1 yaw to control the propellers .
i think because i got a lot of values .the accelerometer is ADXL345 and the gyroscope is ITG3200 . if there is problems in the codes below please tell me , but the main issue is how to combine them . i know that yaw isnt my code, i forgot about it and now noticed it , but i guess if i figured roll and pitch yaw would be the same.
thanks
how to get roll pitch and yaw by combining gyroscope and accelerometer data?
so i am new to the field and am doing a drone using esp32 and gy-85. after much work i got the accelerometer working (i think ) and gyroscope but not at the same time (also i think ) . i want to combine their data to get 1 roll 1 pitch and 1 yaw to control the propellers .
i think because i got a lot of values .the accelerometer is ADXL345 and the gyroscope is ITG3200 . if there is problems in the codes below please tell me , but the main issue is how to combine them . i know that yaw isnt my code, i forgot about it and now noticed it , but i guess if i figured roll and pitch yaw would be the same.
thanks