Browse Source

SRV_Channel: add accessor for determining if there are any digital outputs

zr-v5.1
Andy Piper 4 years ago committed by Andrew Tridgell
parent
commit
74045ba50a
  1. 3
      libraries/SRV_Channel/SRV_Channel.h

3
libraries/SRV_Channel/SRV_Channel.h

@ -510,6 +510,9 @@ public: @@ -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…
Cancel
Save