mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 10:28:29 -04:00
ArduCopter - Log.pde - added wrap_360 to compass heading field of ATT message to resolve overflow problem that caused heading to appear as being off by 70 degrees
This commit is contained in:
parent
6e9ffb4249
commit
a869a01294
@ -701,7 +701,7 @@ static void Log_Write_Attitude()
|
||||
DataFlash.WriteInt((int)dcm.pitch_sensor); // 4
|
||||
DataFlash.WriteInt(g.rc_4.control_in); // 5
|
||||
DataFlash.WriteInt((uint16_t)dcm.yaw_sensor); // 6
|
||||
DataFlash.WriteInt((uint16_t)(ToDeg(compass.heading)*100)); // 7
|
||||
DataFlash.WriteInt((uint16_t)(wrap_360(ToDeg(compass.heading)*100))); // 7
|
||||
|
||||
DataFlash.WriteByte(END_BYTE);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user