1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-19 22:35:19 +03:00

Log last disarm reason to blackbox, report via LTM

This commit is contained in:
Konstantin Sharlaimov (DigitalEntity) 2017-04-05 14:49:20 +10:00
parent ab12330ef0
commit d3147b71e8
8 changed files with 41 additions and 14 deletions

View file

@ -34,6 +34,7 @@
#include "drivers/time.h"
#include "fc/fc_core.h"
#include "fc/config.h"
#include "fc/rc_controls.h"
#include "fc/runtime_config.h"
@ -1015,7 +1016,7 @@ static navigationFSMEvent_t navOnEnteringState_NAV_STATE_RTH_FINISHING(navigatio
UNUSED(previousState);
if (navConfig()->general.flags.disarm_on_landing) {
mwDisarm();
mwDisarm(DISARM_NAVIGATION);
}
return NAV_FSM_EVENT_SUCCESS;