APM:Libraries
|
#include <RCInput.h>
Public Member Functions | |
RCInput () | |
void | init () |
bool | new_input () |
uint8_t | num_channels () |
uint16_t | read (uint8_t ch) |
uint8_t | read (uint16_t *periods, uint8_t len) |
bool | set_override (uint8_t channel, int16_t override) |
void | clear_overrides () |
Public Member Functions inherited from AP_HAL::RCInput | |
virtual void | teardown () |
virtual int16_t | get_rssi (void) |
virtual bool | rc_bind (int dsmMode) |
RCInput::RCInput | ( | ) |
Definition at line 5 of file RCInput.cpp.
|
virtual |
Implements AP_HAL::RCInput.
Definition at line 36 of file RCInput.cpp.
|
virtual |
Call init from the platform hal instance init, so that both the type of the RCInput implementation and init argument (e.g. ISRRegistry) are known to the programmer. (It's too difficult to describe this dependency in the C++ type system.)
Implements AP_HAL::RCInput.
Definition at line 8 of file RCInput.cpp.
|
virtual |
Return true if there has been new input since the last call to new_input()
Implements AP_HAL::RCInput.
Definition at line 11 of file RCInput.cpp.
|
virtual |
Return the number of valid channels in the last read
Implements AP_HAL::RCInput.
Definition at line 15 of file RCInput.cpp.
|
virtual |
Implements AP_HAL::RCInput.
Definition at line 19 of file RCInput.cpp.
|
virtual |
Implements AP_HAL::RCInput.
Definition at line 24 of file RCInput.cpp.
|
virtual |
Overrides: these are really grody and don't belong here but we need them at the moment to make the port work. case v of: v == -1 -> no change to this channel v == 0 -> do not override this channel v > 0 -> set v as override.
Implements AP_HAL::RCInput.
Definition at line 32 of file RCInput.cpp.