RC_Channel: added RC_OPTION bit for protocol logging

This commit is contained in:
Andrew Tridgell 2020-03-19 11:08:17 +11:00 committed by Randy Mackay
parent 087da57858
commit f299a4af33
1 changed files with 5 additions and 0 deletions

View File

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