reset slow_WP option at mode switch

This commit is contained in:
Jason Short 2012-02-19 13:13:42 -08:00
parent 151e710668
commit 434b059586
1 changed files with 3 additions and 0 deletions

View File

@ -419,6 +419,9 @@ static void set_mode(byte mode)
// clearing value used to force the copter down in landing mode // clearing value used to force the copter down in landing mode
landing_boost = 0; landing_boost = 0;
// do we want to come to a stop or pass a WP?
slow_wp = false;
// do not auto_land if we are leaving RTL // do not auto_land if we are leaving RTL
auto_land_timer = 0; auto_land_timer = 0;