APM:Libraries
|
#include <RCOutput.h>
Public Member Functions | |
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 |
uint16_t | read_last_sent (uint8_t ch) override |
void | read_last_sent (uint16_t *period_us, uint8_t len) override |
void | set_safety_pwm (uint32_t chmask, uint16_t period_us) override |
void | set_failsafe_pwm (uint32_t chmask, uint16_t period_us) override |
bool | force_safety_on (void) override |
void | force_safety_off (void) override |
void | force_safety_no_wait (void) override |
void | set_esc_scaling (uint16_t min_pwm, uint16_t max_pwm) override |
float | scale_esc_to_unity (uint16_t pwm) override |
void | cork () |
void | push () |
void | set_output_mode (uint16_t mask, enum output_mode mode) override |
void | timer_tick (void) override |
bool | enable_px4io_sbus_out (uint16_t rate_hz) override |
void | set_default_rate (uint16_t rate_hz) override |
Public Member Functions inherited from AP_HAL::RCOutput | |
virtual bool | get_esc_scaling (uint16_t &min_pwm, uint16_t &max_pwm) |
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_telem_request_mask (uint16_t mask) |
Private Member Functions | |
void | _init_alt_channels (void) |
void | _arm_actuators (bool arm) |
void | set_freq_fd (int fd, uint32_t chmask, uint16_t freq_hz, uint32_t &rate_mask) |
void | _send_outputs (void) |
void | force_safety_pending_requests (void) |
Private Attributes | |
int | _pwm_fd |
int | _alt_fd |
uint16_t | _freq_hz |
uint16_t | _period [VRBRAIN_NUM_OUTPUT_CHANNELS] |
uint16_t | _last_sent [VRBRAIN_NUM_OUTPUT_CHANNELS] |
volatile uint8_t | _max_channel |
volatile bool | _need_update |
bool | _sbus_enabled:1 |
perf_counter_t | _perf_rcout |
uint32_t | _last_output |
uint32_t | _last_config_us |
unsigned | _servo_count |
unsigned | _alt_servo_count |
uint32_t | _rate_mask_main |
uint32_t | _rate_mask_alt |
uint16_t | _enabled_channels |
uint32_t | _period_max |
struct { | |
int pwm_sub | |
actuator_outputs_s outputs | |
} | _outputs [ORB_MULTI_MAX_INSTANCES] |
actuator_armed_s | _armed |
orb_advert_t | _actuator_armed_pub |
uint16_t | _esc_pwm_min |
uint16_t | _esc_pwm_max |
bool | _corking |
enum output_mode | _output_mode = MODE_PWM_NORMAL |
enum AP_HAL::Util::safety_state | _safety_state_request = AP_HAL::Util::SAFETY_NONE |
uint32_t | _safety_state_request_last_ms = 0 |
uint16_t | _default_rate_hz = 50 |
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 } |
Definition at line 10 of file RCOutput.h.
|
private |
Definition at line 454 of file RCOutput.cpp.
Referenced by _send_outputs().
|
private |
Definition at line 77 of file RCOutput.cpp.
Referenced by enable_ch().
|
private |
Definition at line 478 of file RCOutput.cpp.
Referenced by push(), and timer_tick().
|
virtual |
Implements AP_HAL::RCOutput.
Definition at line 555 of file RCOutput.cpp.
Referenced by scale_esc_to_unity().
|
overridevirtual |
Implements AP_HAL::RCOutput.
Definition at line 275 of file RCOutput.cpp.
|
overridevirtual |
Implements AP_HAL::RCOutput.
Definition at line 257 of file RCOutput.cpp.
|
overridevirtual |
Reimplemented from AP_HAL::RCOutput.
Definition at line 593 of file RCOutput.cpp.
Referenced by scale_esc_to_unity().
|
overridevirtual |
Reimplemented from AP_HAL::RCOutput.
Definition at line 351 of file RCOutput.cpp.
|
overridevirtual |
Reimplemented from AP_HAL::RCOutput.
Definition at line 324 of file RCOutput.cpp.
|
overridevirtual |
Reimplemented from AP_HAL::RCOutput.
Definition at line 317 of file RCOutput.cpp.
|
private |
Definition at line 330 of file RCOutput.cpp.
Referenced by force_safety_no_wait(), and timer_tick().
|
overridevirtual |
Implements AP_HAL::RCOutput.
Definition at line 243 of file RCOutput.cpp.
|
overridevirtual |
Implements AP_HAL::RCOutput.
Definition at line 28 of file RCOutput.cpp.
|
virtual |
Implements AP_HAL::RCOutput.
Definition at line 564 of file RCOutput.cpp.
Referenced by scale_esc_to_unity().
|
overridevirtual |
Implements AP_HAL::RCOutput.
Definition at line 410 of file RCOutput.cpp.
Referenced by read().
|
overridevirtual |
Implements AP_HAL::RCOutput.
Definition at line 428 of file RCOutput.cpp.
|
overridevirtual |
Reimplemented from AP_HAL::RCOutput.
Definition at line 435 of file RCOutput.cpp.
Referenced by read_last_sent().
|
overridevirtual |
Reimplemented from AP_HAL::RCOutput.
Definition at line 444 of file RCOutput.cpp.
|
inlineoverridevirtual |
Reimplemented from AP_HAL::RCOutput.
Definition at line 32 of file RCOutput.h.
|
overridevirtual |
Reimplemented from AP_HAL::RCOutput.
Definition at line 669 of file RCOutput.cpp.
Referenced by scale_esc_to_unity().
|
inlineoverridevirtual |
Reimplemented from AP_HAL::RCOutput.
Definition at line 28 of file RCOutput.h.
|
overridevirtual |
Reimplemented from AP_HAL::RCOutput.
Definition at line 301 of file RCOutput.cpp.
|
overridevirtual |
Implements AP_HAL::RCOutput.
Definition at line 215 of file RCOutput.cpp.
|
private |
Definition at line 98 of file RCOutput.cpp.
Referenced by set_freq(), and set_output_mode().
|
overridevirtual |
Reimplemented from AP_HAL::RCOutput.
Definition at line 617 of file RCOutput.cpp.
Referenced by scale_esc_to_unity().
|
overridevirtual |
Reimplemented from AP_HAL::RCOutput.
Definition at line 285 of file RCOutput.cpp.
|
overridevirtual |
Reimplemented from AP_HAL::RCOutput.
Definition at line 579 of file RCOutput.cpp.
Referenced by scale_esc_to_unity().
|
overridevirtual |
Implements AP_HAL::RCOutput.
Definition at line 359 of file RCOutput.cpp.
Referenced by _send_outputs().
|
private |
Definition at line 72 of file RCOutput.h.
Referenced by _arm_actuators().
|
private |
Definition at line 48 of file RCOutput.h.
Referenced by _init_alt_channels(), _send_outputs(), get_freq(), init(), set_default_rate(), set_freq(), and set_output_mode().
|
private |
Definition at line 61 of file RCOutput.h.
Referenced by _init_alt_channels(), _send_outputs(), and init().
|
private |
Definition at line 70 of file RCOutput.h.
Referenced by _arm_actuators().
|
private |
Definition at line 79 of file RCOutput.h.
Referenced by cork(), push(), and timer_tick().
|
private |
Definition at line 85 of file RCOutput.h.
Referenced by set_default_rate().
|
private |
Definition at line 64 of file RCOutput.h.
Referenced by _send_outputs(), disable_ch(), enable_ch(), and write().
|
private |
Definition at line 74 of file RCOutput.h.
Referenced by scale_esc_to_unity(), set_esc_scaling(), and write().
|
private |
Definition at line 73 of file RCOutput.h.
Referenced by scale_esc_to_unity(), set_esc_scaling(), and write().
|
private |
Definition at line 49 of file RCOutput.h.
Referenced by get_freq(), and set_freq_fd().
|
private |
Definition at line 59 of file RCOutput.h.
Referenced by _send_outputs().
|
private |
Definition at line 58 of file RCOutput.h.
Referenced by _send_outputs().
|
private |
Definition at line 53 of file RCOutput.h.
Referenced by enable_ch(), init(), read_last_sent(), and write().
|
private |
Definition at line 54 of file RCOutput.h.
Referenced by _send_outputs(), and write().
|
private |
Definition at line 55 of file RCOutput.h.
Referenced by _send_outputs(), and write().
|
private |
Definition at line 80 of file RCOutput.h.
Referenced by push(), set_freq(), set_freq_fd(), set_output_mode(), timer_tick(), and write().
struct { ... } VRBRAIN::VRBRAINRCOutput::_outputs[ORB_MULTI_MAX_INSTANCES] |
Referenced by _send_outputs(), init(), and read().
|
private |
Definition at line 57 of file RCOutput.h.
Referenced by _send_outputs(), and init().
|
private |
Definition at line 50 of file RCOutput.h.
Referenced by _send_outputs(), disable_ch(), enable_ch(), init(), read(), and write().
|
private |
Definition at line 65 of file RCOutput.h.
Referenced by set_freq_fd(), and write().
|
private |
Definition at line 47 of file RCOutput.h.
Referenced by _send_outputs(), force_safety_pending_requests(), init(), set_default_rate(), set_failsafe_pwm(), set_freq(), set_output_mode(), and set_safety_pwm().
|
private |
Definition at line 63 of file RCOutput.h.
Referenced by get_freq(), init(), set_freq(), and set_output_mode().
|
private |
Definition at line 62 of file RCOutput.h.
Referenced by get_freq(), init(), set_freq(), and set_output_mode().
|
private |
Definition at line 82 of file RCOutput.h.
Referenced by force_safety_off(), force_safety_on(), and force_safety_pending_requests().
|
private |
Definition at line 83 of file RCOutput.h.
Referenced by force_safety_no_wait(), force_safety_off(), force_safety_on(), and force_safety_pending_requests().
|
private |
Definition at line 56 of file RCOutput.h.
Referenced by _send_outputs(), and enable_px4io_sbus_out().
|
private |
Definition at line 60 of file RCOutput.h.
Referenced by _send_outputs(), get_freq(), init(), set_failsafe_pwm(), set_freq(), and set_safety_pwm().
actuator_outputs_s VRBRAIN::VRBRAINRCOutput::outputs |
Definition at line 68 of file RCOutput.h.
Referenced by _send_outputs(), and read().
int VRBRAIN::VRBRAINRCOutput::pwm_sub |
Definition at line 67 of file RCOutput.h.
Referenced by _send_outputs(), and read().