mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-05 07:28:29 -04:00
AP_BoardConfig: added get_safety_mask()
This commit is contained in:
parent
7be1125084
commit
60f79921ac
@ -139,6 +139,15 @@ public:
|
|||||||
}
|
}
|
||||||
#endif
|
#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:
|
private:
|
||||||
static AP_BoardConfig *instance;
|
static AP_BoardConfig *instance;
|
||||||
|
Loading…
Reference in New Issue
Block a user