APM:Libraries
|
#include <RCInput.h>
Public Member Functions | |
RCInput (SITL_State *sitlState) | |
void | init () override |
bool | new_input () override |
uint8_t | num_channels () override |
uint16_t | read (uint8_t ch) override |
uint8_t | read (uint16_t *periods, uint8_t len) override |
bool | set_override (uint8_t channel, int16_t override) override |
void | clear_overrides () override |
Public Member Functions inherited from AP_HAL::RCInput | |
virtual void | teardown () |
virtual int16_t | get_rssi (void) |
virtual bool | rc_bind (int dsmMode) |
Private Attributes | |
SITL_State * | _sitlState |
uint16_t | _override [SITL_RC_INPUT_CHANNELS] |
|
inlineexplicit |
|
overridevirtual |
Implements AP_HAL::RCInput.
Definition at line 60 of file RCInput.cpp.
Referenced by init(), and num_channels().
|
overridevirtual |
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 10 of file RCInput.cpp.
Referenced by RCInput().
|
overridevirtual |
Return true if there has been new input since the last call to new_input()
Implements AP_HAL::RCInput.
Definition at line 15 of file RCInput.cpp.
Referenced by RCInput().
|
inlineoverridevirtual |
Return the number of valid channels in the last read
Implements AP_HAL::RCInput.
Definition at line 15 of file RCInput.h.
|
overridevirtual |
Implements AP_HAL::RCInput.
Definition at line 24 of file RCInput.cpp.
Referenced by num_channels(), and read().
|
overridevirtual |
Implements AP_HAL::RCInput.
Definition at line 35 of file RCInput.cpp.
|
overridevirtual |
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 46 of file RCInput.cpp.
Referenced by num_channels().
|
private |
Definition at line 28 of file RCInput.h.
Referenced by clear_overrides(), read(), and set_override().
|
private |
Definition at line 25 of file RCInput.h.
Referenced by new_input(), and read().