Browse Source

RC_Channel: added RC_OPTION bit for protocol logging

c415-sdk
Andrew Tridgell 5 years ago committed by Randy Mackay
parent
commit
f299a4af33
  1. 5
      libraries/RC_Channel/RC_Channel.h

5
libraries/RC_Channel/RC_Channel.h

@ -356,6 +356,10 @@ public:
return _options & uint32_t(Option::IGNORE_RECEIVER); return _options & uint32_t(Option::IGNORE_RECEIVER);
} }
bool log_raw_data() const {
return _options & uint32_t(Option::LOG_DATA);
}
float override_timeout_ms() const { float override_timeout_ms() const {
return _override_timeout.get() * 1e3f; return _override_timeout.get() * 1e3f;
} }
@ -374,6 +378,7 @@ protected:
IGNORE_OVERRIDES = (1 << 1), // MAVLink overrides IGNORE_OVERRIDES = (1 << 1), // MAVLink overrides
IGNORE_FAILSAFE = (1 << 2), // ignore RC failsafe bits IGNORE_FAILSAFE = (1 << 2), // ignore RC failsafe bits
FPORT_PAD = (1 << 3), // pad fport telem output FPORT_PAD = (1 << 3), // pad fport telem output
LOG_DATA = (1 << 4), // log rc input bytes
}; };
void new_override_received() { void new_override_received() {

Loading…
Cancel
Save