From 97baec8bc7b784cc9a418010c249b41900a2e953 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 14 Aug 2013 14:27:39 +1000 Subject: [PATCH] SITL: update for new SIMSTATE message --- libraries/SITL/SITL.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/SITL/SITL.cpp b/libraries/SITL/SITL.cpp index 8937ef14599..078ee2e9886 100644 --- a/libraries/SITL/SITL.cpp +++ b/libraries/SITL/SITL.cpp @@ -61,8 +61,8 @@ void SITL::simstate_send(mavlink_channel_t chan) state.yAccel, state.zAccel, p, q, r, - state.latitude, - state.longitude); + state.latitude*1.0e7, + state.longitude*1.0e7); } // convert a set of roll rates from earth frame to body frame