mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 09:28:31 -04:00
SRV_Channel: add accessor for determining if there are any digital outputs
This commit is contained in:
parent
4929caa241
commit
74045ba50a
@ -510,6 +510,9 @@ public:
|
|||||||
// return true if all of the outputs in mask are digital
|
// return true if all of the outputs in mask are digital
|
||||||
static bool have_digital_outputs(uint16_t mask) { return mask != 0 && (mask & digital_mask) == mask; }
|
static bool have_digital_outputs(uint16_t mask) { return mask != 0 && (mask & digital_mask) == mask; }
|
||||||
|
|
||||||
|
// return true if any of the outputs are digital
|
||||||
|
static bool have_digital_outputs() { return digital_mask != 0; }
|
||||||
|
|
||||||
// Set E - stop
|
// Set E - stop
|
||||||
static void set_emergency_stop(bool state) {
|
static void set_emergency_stop(bool state) {
|
||||||
emergency_stop = state;
|
emergency_stop = state;
|
||||||
|
Loading…
Reference in New Issue
Block a user