Plane: let AHRS update orientation in its own time

This commit is contained in:
Peter Barker 2019-05-01 17:35:56 +10:00 committed by Peter Barker
parent fca544a14a
commit cfff881013

View File

@ -296,8 +296,6 @@ void Plane::one_second_loop()
iomcu.setup_mixing(&rcmap, g.override_channel.get(), g.mixing_gain, g2.manual_rc_mask); iomcu.setup_mixing(&rcmap, g.override_channel.get(), g.mixing_gain, g2.manual_rc_mask);
#endif #endif
// make it possible to change orientation at runtime
ahrs.update_orientation();
#if HAL_ADSB_ENABLED #if HAL_ADSB_ENABLED
adsb.set_stall_speed_cm(aparm.airspeed_min * 100); // convert m/s to cm/s adsb.set_stall_speed_cm(aparm.airspeed_min * 100); // convert m/s to cm/s
adsb.set_max_speed(aparm.airspeed_max); adsb.set_max_speed(aparm.airspeed_max);