Send lat lon in SIM_STATE as int32_t extensions

This commit is contained in:
Samuel Tabor 2023-06-28 08:59:31 +01:00 committed by Tom Pittenger
parent 8c4d00e6f2
commit 40f62949b3
1 changed files with 3 additions and 1 deletions

View File

@ -1144,7 +1144,9 @@ void SIM::sim_state_send(mavlink_channel_t chan) const
0.0, 0.0,
state.speedN, state.speedN,
state.speedE, state.speedE,
state.speedD); state.speedD,
(int32_t)(state.latitude*1.0e7),
(int32_t)(state.longitude*1.0e7));
} }
/* report SITL state to AP_Logger */ /* report SITL state to AP_Logger */