From 96d1249dad0fe29b517a1b32ce3889f630cdb493 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 11 Aug 2012 11:58:25 +1000 Subject: [PATCH] SITL: fill in SIMSTATE.lat and SIMSTATE.lng --- libraries/SITL/SITL.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/SITL/SITL.cpp b/libraries/SITL/SITL.cpp index d89f76d80d..31fc24d8a5 100644 --- a/libraries/SITL/SITL.cpp +++ b/libraries/SITL/SITL.cpp @@ -53,7 +53,9 @@ void SITL::simstate_send(mavlink_channel_t chan) state.xAccel, state.yAccel, state.zAccel, - p, q, r); + p, q, r, + state.latitude, + state.longitude); } // convert a set of roll rates from earth frame to body frame