diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-08-28 21:39:33 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-08-28 21:39:38 +0200 |
commit | 6773eb988017063366dce95bbfec8fae1f1913f0 (patch) | |
tree | f6370a9f4e8ff6c24394ffa87feb5ba304565308 /src/modules/px4iofirmware/protocol.h | |
parent | c85d7aae06b49f43e32dde05c00bcee1310aee9f (diff) | |
download | px4-firmware-6773eb988017063366dce95bbfec8fae1f1913f0.tar.gz px4-firmware-6773eb988017063366dce95bbfec8fae1f1913f0.tar.bz2 px4-firmware-6773eb988017063366dce95bbfec8fae1f1913f0.zip |
Introduce FMU initialised status flag, only run failsafe trap if initialized once
Diffstat (limited to 'src/modules/px4iofirmware/protocol.h')
-rw-r--r-- | src/modules/px4iofirmware/protocol.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules/px4iofirmware/protocol.h b/src/modules/px4iofirmware/protocol.h index eae7f9567..4739f6e40 100644 --- a/src/modules/px4iofirmware/protocol.h +++ b/src/modules/px4iofirmware/protocol.h @@ -111,6 +111,7 @@ #define PX4IO_P_STATUS_FLAGS_INIT_OK (1 << 10) /* initialisation of the IO completed without error */ #define PX4IO_P_STATUS_FLAGS_FAILSAFE (1 << 11) /* failsafe is active */ #define PX4IO_P_STATUS_FLAGS_SAFETY_OFF (1 << 12) /* safety is off */ +#define PX4IO_P_STATUS_FLAGS_FMU_INITIALIZED (1 << 13) /* FMU was initialized and OK once */ #define PX4IO_P_STATUS_ALARMS 3 /* alarm flags - alarms latch, write 1 to a bit to clear it */ #define PX4IO_P_STATUS_ALARMS_VBATT_LOW (1 << 0) /* [1] VBatt is very close to regulator dropout */ |