Plane: force the safety_state immediately because we want it to be in effect while we make mixer changes

This commit is contained in:
Tom Pittenger 2016-05-26 23:41:29 -07:00 committed by Andrew Tridgell
parent 4785650c95
commit e3930b45df

View File

@ -276,6 +276,7 @@ bool Plane::setup_failsafe_mixing(void)
// it twice as there have been reports that this call can fail
// with a small probability
hal.rcout->force_safety_on();
hal.rcout->force_safety_no_wait();
/* reset any existing mixer in px4io. This shouldn't be needed,
* but is good practice */