mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Plane: set nav_controller stale on mode change
This commit is contained in:
parent
0e9f9920bc
commit
d1b2c6e564
@ -113,6 +113,9 @@ bool Mode::enter()
|
|||||||
plane.adsb.set_is_auto_mode(does_auto_navigation());
|
plane.adsb.set_is_auto_mode(does_auto_navigation());
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// set the nav controller stale AFTER _enter() so that we can check if we're currently in a loiter during the mode change
|
||||||
|
plane.nav_controller->set_data_is_stale();
|
||||||
|
|
||||||
// reset steering integrator on mode change
|
// reset steering integrator on mode change
|
||||||
plane.steerController.reset_I();
|
plane.steerController.reset_I();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user