mirror of https://github.com/ArduPilot/ardupilot
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
|
||||
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
|
||||
static void set_emergency_stop(bool state) {
|
||||
emergency_stop = state;
|
||||
|
|
Loading…
Reference in New Issue