Browse Source

SITL: fixed compass vector to be based on yaw not GPS heading

Many thanks to Randy for noticing this, and apologies for the wasted time!
master
Andrew Tridgell 12 years ago
parent
commit
53ebcfeba5
  1. 2
      libraries/AP_HAL_AVR_SITL/SITL_State.cpp

2
libraries/AP_HAL_AVR_SITL/SITL_State.cpp

@ -256,7 +256,7 @@ void SITL_State::_timer_handler(int signum) @@ -256,7 +256,7 @@ void SITL_State::_timer_handler(int signum)
_sitl->state.xAccel, _sitl->state.yAccel, _sitl->state.zAccel,
_sitl->state.airspeed);
_update_barometer(_sitl->state.altitude);
_update_compass(_sitl->state.rollDeg, _sitl->state.pitchDeg, _sitl->state.heading);
_update_compass(_sitl->state.rollDeg, _sitl->state.pitchDeg, _sitl->state.yawDeg);
}
// trigger all APM timers. We do this last as it can re-enable

Loading…
Cancel
Save