APM:Libraries
Public Member Functions | List of all members
Empty::RCInput Class Reference

#include <RCInput.h>

Inheritance diagram for Empty::RCInput:
[legend]
Collaboration diagram for Empty::RCInput:
[legend]

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)
 

Detailed Description

Definition at line 5 of file RCInput.h.

Constructor & Destructor Documentation

◆ RCInput()

RCInput::RCInput ( )

Definition at line 5 of file RCInput.cpp.

Member Function Documentation

◆ clear_overrides()

void RCInput::clear_overrides ( )
virtual

Implements AP_HAL::RCInput.

Definition at line 36 of file RCInput.cpp.

◆ init()

void RCInput::init ( )
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.

◆ new_input()

bool RCInput::new_input ( )
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.

◆ num_channels()

uint8_t RCInput::num_channels ( )
virtual

Return the number of valid channels in the last read

Implements AP_HAL::RCInput.

Definition at line 15 of file RCInput.cpp.

◆ read() [1/2]

uint16_t RCInput::read ( uint8_t  ch)
virtual

Implements AP_HAL::RCInput.

Definition at line 19 of file RCInput.cpp.

◆ read() [2/2]

uint8_t RCInput::read ( uint16_t *  periods,
uint8_t  len 
)
virtual

Implements AP_HAL::RCInput.

Definition at line 24 of file RCInput.cpp.

◆ set_override()

bool RCInput::set_override ( uint8_t  channel,
int16_t  override 
)
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.


The documentation for this class was generated from the following files: