AP_BoardConfig: added get_safety_mask()

This commit is contained in:
Andrew Tridgell 2018-04-14 13:54:23 +10:00
parent 7be1125084
commit 60f79921ac

View File

@ -139,6 +139,15 @@ public:
}
#endif
// return the value of BRD_SAFETY_MASK
uint16_t get_safety_mask(void) const {
#if AP_FEATURE_BOARD_DETECT || defined(AP_FEATURE_BRD_PWM_COUNT_PARAM)
return uint16_t(state.ignore_safety_channels.get());
#else
return 0;
#endif
}
private:
static AP_BoardConfig *instance;