mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 02:18:29 -04:00
Mavlink: report the corrected pitch via MAVLink
this subtracts the TRIM_PITCH_CD from the pitch reported via MAVLink. That gives a better indication of the true pitch in the tlog
This commit is contained in:
parent
6a42598ade
commit
8d1729b3ba
@ -113,7 +113,7 @@ static NOINLINE void send_attitude(mavlink_channel_t chan)
|
|||||||
chan,
|
chan,
|
||||||
micros(),
|
micros(),
|
||||||
dcm.roll,
|
dcm.roll,
|
||||||
dcm.pitch,
|
dcm.pitch - radians(g.pitch_trim*0.01),
|
||||||
dcm.yaw,
|
dcm.yaw,
|
||||||
omega.x,
|
omega.x,
|
||||||
omega.y,
|
omega.y,
|
||||||
|
Loading…
Reference in New Issue
Block a user