APM:Libraries
Classes | Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
Linux::RCInput_SoloLink Class Reference

#include <RCInput_SoloLink.h>

Inheritance diagram for Linux::RCInput_SoloLink:
[legend]
Collaboration diagram for Linux::RCInput_SoloLink:
[legend]

Classes

union  packet
 

Public Member Functions

 RCInput_SoloLink ()
 
void init ()
 
void _timer_tick ()
 
- Public Member Functions inherited from Linux::RCInput
 RCInput ()
 
bool new_input ()
 
uint8_t num_channels ()
 
uint16_t read (uint8_t ch)
 
uint8_t read (uint16_t *periods, uint8_t len)
 
int16_t get_rssi (void) override
 
bool set_override (uint8_t channel, int16_t override)
 
void clear_overrides ()
 
bool add_dsm_input (const uint8_t *bytes, size_t nbytes)
 
void add_sbus_input (const uint8_t *bytes, size_t nbytes)
 
bool add_sumd_input (const uint8_t *bytes, size_t nbytes)
 
bool add_st24_input (const uint8_t *bytes, size_t nbytes)
 
bool add_srxl_input (const uint8_t *bytes, size_t nbytes)
 
- Public Member Functions inherited from AP_HAL::RCInput
virtual void teardown ()
 
virtual bool rc_bind (int dsmMode)
 

Private Member Functions

bool _check_hdr (ssize_t len)
 

Private Attributes

SocketAPM _socket {true}
 
uint64_t _last_usec = 0
 
uint16_t _last_seq = 0
 
union packet _packet
 

Static Private Attributes

static const unsigned int PACKET_LEN = 26
 
static const unsigned int PORT = 5005
 

Additional Inherited Members

- Static Public Member Functions inherited from Linux::RCInput
static RCInputfrom (AP_HAL::RCInput *rcinput)
 
- Protected Member Functions inherited from Linux::RCInput
void _process_rc_pulse (uint16_t width_s0, uint16_t width_s1)
 
void _update_periods (uint16_t *periods, uint8_t len)
 
void _process_ppmsum_pulse (uint16_t width)
 
void _process_sbus_pulse (uint16_t width_s0, uint16_t width_s1)
 
void _process_dsm_pulse (uint16_t width_s0, uint16_t width_s1)
 
- Protected Attributes inherited from Linux::RCInput
std::atomic< unsigned int > rc_input_count
 
std::atomic< unsigned int > last_rc_input_count
 
uint16_t _pwm_values [LINUX_RC_INPUT_NUM_CHANNELS]
 
uint8_t _num_channels
 
uint16_t _override [LINUX_RC_INPUT_NUM_CHANNELS]
 
struct {
   int8_t   _channel_counter
 
   uint16_t   _pulse_capt [LINUX_RC_INPUT_NUM_CHANNELS]
 
ppm_state
 
struct {
   uint16_t   bytes [25]
 
   uint16_t   bit_ofs
 
sbus_state
 
struct {
   uint16_t   bytes [16]
 
   uint16_t   bit_ofs
 
dsm_state
 
struct {
   uint8_t   frame [16]
 
   uint8_t   partial_frame_count
 
   uint32_t   last_input_ms
 
dsm
 
struct {
   uint8_t   frame [25]
 
   uint8_t   partial_frame_count
 
   uint32_t   last_input_ms
 
sbus
 
int16_t _rssi = -1
 

Detailed Description

Definition at line 28 of file RCInput_SoloLink.h.

Constructor & Destructor Documentation

◆ RCInput_SoloLink()

RCInput_SoloLink::RCInput_SoloLink ( )

Definition at line 36 of file RCInput_SoloLink.cpp.

Member Function Documentation

◆ _check_hdr()

bool RCInput_SoloLink::_check_hdr ( ssize_t  len)
private

Definition at line 53 of file RCInput_SoloLink.cpp.

Referenced by _timer_tick().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _timer_tick()

void RCInput_SoloLink::_timer_tick ( void  )
virtual

Reimplemented from Linux::RCInput.

Definition at line 79 of file RCInput_SoloLink.cpp.

Here is the call graph for this function:

◆ init()

void RCInput_SoloLink::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.)

Reimplemented from Linux::RCInput.

Definition at line 41 of file RCInput_SoloLink.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ _last_seq

uint16_t Linux::RCInput_SoloLink::_last_seq = 0
private

Definition at line 53 of file RCInput_SoloLink.h.

Referenced by _check_hdr().

◆ _last_usec

uint64_t Linux::RCInput_SoloLink::_last_usec = 0
private

Definition at line 52 of file RCInput_SoloLink.h.

Referenced by _check_hdr().

◆ _packet

union packet Linux::RCInput_SoloLink::_packet
private

Definition at line 54 of file RCInput_SoloLink.h.

Referenced by _check_hdr(), _timer_tick(), and RCInput_SoloLink().

◆ _socket

SocketAPM Linux::RCInput_SoloLink::_socket {true}
private

Definition at line 51 of file RCInput_SoloLink.h.

Referenced by _timer_tick(), and init().

◆ PACKET_LEN

const unsigned int Linux::RCInput_SoloLink::PACKET_LEN = 26
staticprivate

Definition at line 37 of file RCInput_SoloLink.h.

◆ PORT

const unsigned int Linux::RCInput_SoloLink::PORT = 5005
staticprivate

Definition at line 38 of file RCInput_SoloLink.h.

Referenced by init().


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