APM:Libraries
|
#include <AP_MotorsHeli_Single.h>
Public Member Functions | |
AP_MotorsHeli_Single (uint16_t loop_rate, uint16_t speed_hz=AP_MOTORS_HELI_SPEED_DEFAULT) | |
void | set_update_rate (uint16_t speed_hz) override |
void | output_test (uint8_t motor_seq, int16_t pwm) override |
void | set_desired_rotor_speed (float desired_speed) override |
float | get_main_rotor_speed () const override |
float | get_desired_rotor_speed () const override |
bool | rotor_speed_above_critical () const override |
void | calculate_scalars () override |
void | calculate_armed_scalars () override |
uint16_t | get_motor_mask () override |
void | ext_gyro_gain (float gain) override |
bool | has_flybar () const override |
bool | supports_yaw_passthrough () const override |
void | set_acro_tail (bool set) override |
bool | parameter_check (bool display_msg) const override |
Public Member Functions inherited from AP_MotorsHeli | |
AP_MotorsHeli (uint16_t loop_rate, uint16_t speed_hz=AP_MOTORS_HELI_SPEED_DEFAULT) | |
Constructor. More... | |
void | init (motor_frame_class frame_class, motor_frame_type frame_type) |
void | set_frame_class_and_type (motor_frame_class frame_class, motor_frame_type frame_type) |
void | output_min () |
void | set_collective_for_landing (bool landing) |
void | set_inverted_flight (bool inverted) |
uint8_t | get_rsc_mode () const |
float | get_rsc_setpoint () const |
bool | rotor_runup_complete () const |
void | output () |
float | get_throttle_hover () const |
Public Member Functions inherited from AP_Motors | |
AP_Motors (uint16_t loop_rate, uint16_t speed_hz=AP_MOTORS_SPEED_DEFAULT) | |
bool | initialised_ok () const |
bool | armed () const |
void | armed (bool arm) |
void | set_interlock (bool set) |
bool | get_interlock () const |
void | set_roll (float roll_in) |
void | set_pitch (float pitch_in) |
void | set_yaw (float yaw_in) |
void | set_throttle (float throttle_in) |
void | set_throttle_avg_max (float throttle_avg_max) |
void | set_throttle_filter_cutoff (float filt_hz) |
void | set_forward (float forward_in) |
void | set_lateral (float lateral_in) |
float | get_roll () const |
float | get_pitch () const |
float | get_yaw () const |
float | get_throttle () const |
float | get_throttle_bidirectional () const |
float | get_forward () const |
float | get_lateral () const |
virtual void | set_desired_spool_state (enum spool_up_down_desired spool) |
enum spool_up_down_desired | get_desired_spool_state (void) const |
void | set_air_density_ratio (float ratio) |
void | set_radio_passthrough (float roll_input, float pitch_input, float throttle_input, float yaw_input) |
void | set_loop_rate (uint16_t loop_rate) |
pwm_type | get_pwm_type (void) const |
Static Public Attributes | |
static const struct AP_Param::GroupInfo | var_info [] |
Static Public Attributes inherited from AP_MotorsHeli | |
static const struct AP_Param::GroupInfo | var_info [] |
Protected Member Functions | |
bool | init_outputs () override |
void | update_motor_control (RotorControlState state) override |
void | calculate_roll_pitch_collective_factors () override |
void | move_actuators (float roll_out, float pitch_out, float coll_in, float yaw_out) override |
void | move_yaw (float yaw_out) |
void | write_aux (float servo_out) |
void | servo_test () override |
Protected Member Functions inherited from AP_MotorsHeli | |
void | output_armed_stabilizing () |
void | output_armed_zero_throttle () |
void | output_disarmed () |
void | reset_flight_controls () |
void | update_throttle_filter () |
void | reset_swash_servo (SRV_Channel *servo) |
int16_t | calc_pwm_output_1to1_swash_servo (float input, const SRV_Channel *servo) |
Protected Member Functions inherited from AP_Motors | |
virtual void | rc_write (uint8_t chan, uint16_t pwm) |
virtual void | rc_write_angle (uint8_t chan, int16_t angle_cd) |
virtual void | rc_set_freq (uint32_t mask, uint16_t freq_hz) |
virtual uint32_t | rc_map_mask (uint32_t mask) const |
void | add_motor_num (int8_t motor_num) |
virtual void | save_params_on_disarm () |
int16_t | calc_pwm_output_1to1 (float input, const SRV_Channel *servo) |
int16_t | calc_pwm_output_0to1 (float input, const SRV_Channel *servo) |
Definition at line 48 of file AP_MotorsHeli_Single.h.
|
inline |
|
overridevirtual |
Implements AP_MotorsHeli.
Definition at line 238 of file AP_MotorsHeli_Single.cpp.
Referenced by calculate_scalars(), and rotor_speed_above_critical().
|
overrideprotectedvirtual |
Implements AP_MotorsHeli.
Definition at line 289 of file AP_MotorsHeli_Single.cpp.
Referenced by calculate_scalars().
|
overridevirtual |
Implements AP_MotorsHeli.
Definition at line 253 of file AP_MotorsHeli_Single.cpp.
Referenced by rotor_speed_above_critical().
|
inlineoverridevirtual |
Reimplemented from AP_MotorsHeli.
Definition at line 91 of file AP_MotorsHeli_Single.h.
|
inlineoverridevirtual |
Implements AP_MotorsHeli.
Definition at line 75 of file AP_MotorsHeli_Single.h.
|
inlineoverridevirtual |
Implements AP_MotorsHeli.
Definition at line 72 of file AP_MotorsHeli_Single.h.
|
overridevirtual |
Implements AP_MotorsHeli.
Definition at line 341 of file AP_MotorsHeli_Single.cpp.
Referenced by rotor_speed_above_critical().
|
inlineoverridevirtual |
Reimplemented from AP_MotorsHeli.
Definition at line 94 of file AP_MotorsHeli_Single.h.
|
overrideprotectedvirtual |
Implements AP_MotorsHeli.
Definition at line 149 of file AP_MotorsHeli_Single.cpp.
|
overrideprotectedvirtual |
Implements AP_MotorsHeli.
Definition at line 374 of file AP_MotorsHeli_Single.cpp.
|
protected |
Definition at line 469 of file AP_MotorsHeli_Single.cpp.
Referenced by move_actuators().
|
overridevirtual |
Implements AP_MotorsHeli.
Definition at line 186 of file AP_MotorsHeli_Single.cpp.
Referenced by AP_MotorsHeli_Single().
|
overridevirtual |
Reimplemented from AP_MotorsHeli.
Definition at line 562 of file AP_MotorsHeli_Single.cpp.
Referenced by set_acro_tail().
|
inlineoverridevirtual |
Implements AP_MotorsHeli.
Definition at line 78 of file AP_MotorsHeli_Single.h.
|
overrideprotectedvirtual |
Implements AP_MotorsHeli.
Definition at line 513 of file AP_MotorsHeli_Single.cpp.
|
inlineoverridevirtual |
Reimplemented from AP_MotorsHeli.
Definition at line 99 of file AP_MotorsHeli_Single.h.
|
overridevirtual |
Implements AP_MotorsHeli.
Definition at line 229 of file AP_MotorsHeli_Single.cpp.
Referenced by AP_MotorsHeli_Single().
|
overridevirtual |
Implements AP_MotorsHeli.
Definition at line 134 of file AP_MotorsHeli_Single.cpp.
Referenced by AP_MotorsHeli_Single().
|
inlineoverridevirtual |
Reimplemented from AP_MotorsHeli.
Definition at line 97 of file AP_MotorsHeli_Single.h.
|
overrideprotectedvirtual |
Implements AP_MotorsHeli.
Definition at line 348 of file AP_MotorsHeli_Single.cpp.
|
protected |
Definition at line 505 of file AP_MotorsHeli_Single.cpp.
Referenced by move_yaw(), and output_test().
|
protected |
Definition at line 162 of file AP_MotorsHeli_Single.h.
Referenced by move_yaw(), output_test(), and set_acro_tail().
|
protected |
Definition at line 146 of file AP_MotorsHeli_Single.h.
Referenced by move_actuators().
|
protected |
Definition at line 137 of file AP_MotorsHeli_Single.h.
Referenced by servo_test().
|
protected |
Definition at line 152 of file AP_MotorsHeli_Single.h.
Referenced by move_actuators().
|
protected |
Definition at line 165 of file AP_MotorsHeli_Single.h.
Referenced by calculate_roll_pitch_collective_factors(), and move_actuators().
|
protected |
Definition at line 154 of file AP_MotorsHeli_Single.h.
Referenced by set_desired_rotor_speed().
|
protected |
Definition at line 150 of file AP_MotorsHeli_Single.h.
Referenced by move_yaw(), output_test(), and parameter_check().
|
protected |
Definition at line 149 of file AP_MotorsHeli_Single.h.
Referenced by ext_gyro_gain(), move_yaw(), output_test(), and parameter_check().
|
protected |
Definition at line 153 of file AP_MotorsHeli_Single.h.
Referenced by has_flybar().
|
protected |
Definition at line 131 of file AP_MotorsHeli_Single.h.
Referenced by calculate_armed_scalars(), calculate_scalars(), get_desired_rotor_speed(), get_main_rotor_speed(), init_outputs(), move_actuators(), move_yaw(), rotor_speed_above_critical(), set_desired_rotor_speed(), and update_motor_control().
|
protected |
Definition at line 135 of file AP_MotorsHeli_Single.h.
Referenced by servo_test().
|
protected |
Definition at line 151 of file AP_MotorsHeli_Single.h.
Referenced by calculate_roll_pitch_collective_factors(), and parameter_check().
|
protected |
Definition at line 139 of file AP_MotorsHeli_Single.h.
Referenced by servo_test().
|
protected |
Definition at line 164 of file AP_MotorsHeli_Single.h.
Referenced by calculate_roll_pitch_collective_factors(), and move_actuators().
|
protected |
Definition at line 138 of file AP_MotorsHeli_Single.h.
Referenced by servo_test().
|
protected |
Definition at line 163 of file AP_MotorsHeli_Single.h.
Referenced by calculate_roll_pitch_collective_factors(), and move_actuators().
|
protected |
Definition at line 143 of file AP_MotorsHeli_Single.h.
Referenced by calculate_roll_pitch_collective_factors().
|
protected |
Definition at line 144 of file AP_MotorsHeli_Single.h.
Referenced by calculate_roll_pitch_collective_factors().
|
protected |
Definition at line 145 of file AP_MotorsHeli_Single.h.
Referenced by calculate_roll_pitch_collective_factors().
|
protected |
Definition at line 160 of file AP_MotorsHeli_Single.h.
Referenced by init_outputs(), and write_aux().
|
protected |
Definition at line 136 of file AP_MotorsHeli_Single.h.
Referenced by servo_test().
|
protected |
Definition at line 156 of file AP_MotorsHeli_Single.h.
Referenced by init_outputs(), and move_actuators().
|
protected |
Definition at line 157 of file AP_MotorsHeli_Single.h.
Referenced by init_outputs(), and move_actuators().
|
protected |
Definition at line 158 of file AP_MotorsHeli_Single.h.
Referenced by init_outputs(), and move_actuators().
|
protected |
Definition at line 148 of file AP_MotorsHeli_Single.h.
Referenced by calculate_roll_pitch_collective_factors(), and move_actuators().
|
protected |
Definition at line 132 of file AP_MotorsHeli_Single.h.
Referenced by calculate_scalars(), init_outputs(), set_desired_rotor_speed(), and update_motor_control().
|
protected |
Definition at line 147 of file AP_MotorsHeli_Single.h.
Referenced by calculate_scalars(), init_outputs(), move_actuators(), move_yaw(), output_test(), and supports_yaw_passthrough().
|
protected |
Definition at line 159 of file AP_MotorsHeli_Single.h.
Referenced by init_outputs(), and move_yaw().
|
protected |
Definition at line 140 of file AP_MotorsHeli_Single.h.
Referenced by servo_test().
|
static |
Definition at line 105 of file AP_MotorsHeli_Single.h.
Referenced by AP_MotorsHeli_Single().