felixge / godrone

GoDrone is a free software alternative firmware for the Parrot AR Drone 2.0.
http://www.godrone.io/
Other
205 stars 22 forks source link

filter.go has pitch and roll backwards? #58

Closed jeffallen closed 9 years ago

jeffallen commented 9 years ago
    accDeg = PRY{

26 Pitch: degAngle(sensors.Acc.Roll, sensors.Acc.Yaw), 27 Roll: degAngle(sensors.Acc.Pitch, sensors.Acc.Yaw), 28 }

Why is Pitch calculated from Roll and vice-versa?

felixge commented 9 years ago

This is correct. Try to picture the acceleration measured along the roll axis and the yaw axis. The angle between them is the pitch: