ardupilot/libraries/AP_RCProtocol/AP_RCProtocol_Radio.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
544 B
C
Raw Permalink Normal View History

#pragma once
#include "AP_RCProtocol_config.h"
#if AP_RCPROTOCOL_RADIO_ENABLED
/*
* Reads fixed-length packets containing either 8 or 16 2-byte values,
* and interprets them as RC input.
*/
#include "AP_RCProtocol_Backend.h"
class AP_RCProtocol_Radio : public AP_RCProtocol_Backend {
public:
using AP_RCProtocol_Backend::AP_RCProtocol_Backend;
void update() override;
void start_bind(void) override;
private:
bool init();
bool init_done;
uint32_t last_input_us;
};
#endif // AP_RCPROTOCOL_RADIO_ENABLED