Line data Source code
1 : #pragma once 2 : 3 : #include "AP_RCProtocol_config.h" 4 : 5 : #if AP_RCPROTOCOL_FDM_ENABLED 6 : 7 : #include "AP_RCProtocol_Backend.h" 8 : 9 : class AP_RCProtocol_FDM : public AP_RCProtocol_Backend { 10 : public: 11 : 12 : using AP_RCProtocol_Backend::AP_RCProtocol_Backend; 13 : 14 : void update() override; 15 : 16 136959497 : bool active() const { return last_input_ms > 0; } 17 : 18 : private: 19 : 20 : uint32_t last_input_ms; 21 : }; 22 : 23 : 24 : #endif // AP_RCPROTOCOL_FDM_ENABLED