APM:Libraries
Public Member Functions | Private Attributes | List of all members
HALSITL::RCOutput Class Reference

#include <RCOutput.h>

Inheritance diagram for HALSITL::RCOutput:
[legend]
Collaboration diagram for HALSITL::RCOutput:
[legend]

Public Member Functions

 RCOutput (SITL_State *sitlState)
 
void init () override
 
void set_freq (uint32_t chmask, uint16_t freq_hz) override
 
uint16_t get_freq (uint8_t ch) override
 
void enable_ch (uint8_t ch) override
 
void disable_ch (uint8_t ch) override
 
void write (uint8_t ch, uint16_t period_us) override
 
uint16_t read (uint8_t ch) override
 
void read (uint16_t *period_us, uint8_t len) override
 
void cork (void)
 
void push (void)
 
- Public Member Functions inherited from AP_HAL::RCOutput
virtual uint16_t read_last_sent (uint8_t ch)
 
virtual void read_last_sent (uint16_t *period_us, uint8_t len)
 
virtual void set_safety_pwm (uint32_t chmask, uint16_t period_us)
 
virtual void set_failsafe_pwm (uint32_t chmask, uint16_t period_us)
 
virtual bool force_safety_on (void)
 
virtual void force_safety_off (void)
 
virtual void force_safety_no_wait (void)
 
virtual void set_esc_scaling (uint16_t min_pwm, uint16_t max_pwm)
 
virtual bool get_esc_scaling (uint16_t &min_pwm, uint16_t &max_pwm)
 
virtual float scale_esc_to_unity (uint16_t pwm)
 
virtual bool enable_px4io_sbus_out (uint16_t rate_hz)
 
virtual void timer_tick (void)
 
virtual bool serial_setup_output (uint8_t chan, uint32_t baudrate)
 
virtual bool serial_write_bytes (const uint8_t *bytes, uint16_t len)
 
virtual uint16_t serial_read_bytes (uint8_t *buf, uint16_t len)
 
virtual void serial_end (void)
 
virtual void set_output_mode (uint16_t mask, enum output_mode mode)
 
virtual void set_default_rate (uint16_t rate_hz)
 
virtual void set_telem_request_mask (uint16_t mask)
 

Private Attributes

SITL_State_sitlState
 
uint16_t _freq_hz
 
uint16_t _enable_mask
 
bool _corked
 
uint16_t _pending [SITL_NUM_CHANNELS]
 

Additional Inherited Members

- Public Types inherited from AP_HAL::RCOutput
enum  output_mode {
  MODE_PWM_NONE, MODE_PWM_NORMAL, MODE_PWM_ONESHOT, MODE_PWM_ONESHOT125,
  MODE_PWM_BRUSHED, MODE_PWM_DSHOT150, MODE_PWM_DSHOT300, MODE_PWM_DSHOT600,
  MODE_PWM_DSHOT1200
}
 

Detailed Description

Definition at line 7 of file RCOutput.h.

Constructor & Destructor Documentation

◆ RCOutput()

HALSITL::RCOutput::RCOutput ( SITL_State sitlState)
inlineexplicit

Definition at line 9 of file RCOutput.h.

Here is the call graph for this function:

Member Function Documentation

◆ cork()

void HALSITL::RCOutput::cork ( void  )
virtual

Implements AP_HAL::RCOutput.

Referenced by RCOutput().

Here is the caller graph for this function:

◆ disable_ch()

void HALSITL::RCOutput::disable_ch ( uint8_t  ch)
overridevirtual

Implements AP_HAL::RCOutput.

Referenced by RCOutput().

Here is the caller graph for this function:

◆ enable_ch()

void HALSITL::RCOutput::enable_ch ( uint8_t  ch)
overridevirtual

Implements AP_HAL::RCOutput.

Referenced by RCOutput().

Here is the caller graph for this function:

◆ get_freq()

uint16_t HALSITL::RCOutput::get_freq ( uint8_t  ch)
overridevirtual

Implements AP_HAL::RCOutput.

Referenced by RCOutput().

Here is the caller graph for this function:

◆ init()

void HALSITL::RCOutput::init ( )
overridevirtual

Implements AP_HAL::RCOutput.

Referenced by RCOutput().

Here is the caller graph for this function:

◆ push()

void HALSITL::RCOutput::push ( void  )
virtual

Implements AP_HAL::RCOutput.

Referenced by RCOutput().

Here is the caller graph for this function:

◆ read() [1/2]

uint16_t HALSITL::RCOutput::read ( uint8_t  ch)
overridevirtual

Implements AP_HAL::RCOutput.

Referenced by RCOutput().

Here is the caller graph for this function:

◆ read() [2/2]

void HALSITL::RCOutput::read ( uint16_t *  period_us,
uint8_t  len 
)
overridevirtual

Implements AP_HAL::RCOutput.

◆ set_freq()

void HALSITL::RCOutput::set_freq ( uint32_t  chmask,
uint16_t  freq_hz 
)
overridevirtual

Implements AP_HAL::RCOutput.

Referenced by RCOutput().

Here is the caller graph for this function:

◆ write()

void HALSITL::RCOutput::write ( uint8_t  ch,
uint16_t  period_us 
)
overridevirtual

Implements AP_HAL::RCOutput.

Referenced by RCOutput().

Here is the caller graph for this function:

Member Data Documentation

◆ _corked

bool HALSITL::RCOutput::_corked
private

Definition at line 25 of file RCOutput.h.

◆ _enable_mask

uint16_t HALSITL::RCOutput::_enable_mask
private

Definition at line 24 of file RCOutput.h.

◆ _freq_hz

uint16_t HALSITL::RCOutput::_freq_hz
private

Definition at line 23 of file RCOutput.h.

◆ _pending

uint16_t HALSITL::RCOutput::_pending[SITL_NUM_CHANNELS]
private

Definition at line 26 of file RCOutput.h.

◆ _sitlState

SITL_State* HALSITL::RCOutput::_sitlState
private

Definition at line 22 of file RCOutput.h.


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