SITL: fill in SIMSTATE.lat and SIMSTATE.lng

This commit is contained in:
Andrew Tridgell 2012-08-11 11:58:25 +10:00
parent 90f00ebd01
commit 96d1249dad
1 changed files with 3 additions and 1 deletions

View File

@ -53,7 +53,9 @@ void SITL::simstate_send(mavlink_channel_t chan)
state.xAccel, state.xAccel,
state.yAccel, state.yAccel,
state.zAccel, state.zAccel,
p, q, r); p, q, r,
state.latitude,
state.longitude);
} }
// convert a set of roll rates from earth frame to body frame // convert a set of roll rates from earth frame to body frame