Closed jeffallen closed 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?
This is correct. Try to picture the acceleration measured along the roll axis and the yaw axis. The angle between them is the pitch:
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?