MulticopterPositionControl: reset task when switching mode

to make sure the state is clean between auto mode switches.
This commit is contained in:
Matthias Grob
2020-11-19 18:04:21 +01:00
committed by Daniel Agar
parent 85f3ab1960
commit 8f40558f41
2 changed files with 9 additions and 0 deletions
@@ -203,6 +203,8 @@ private:
perf_counter_t _cycle_perf;
uint8_t _last_vehicle_nav_state{0};
/**
* Update our local parameter cache.
* Parameter update can be forced when argument is true.