APM:Libraries
|
#include <AP_MotorsHeli_Quad.h>
Public Member Functions | |
AP_MotorsHeli_Quad (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 |
bool | has_flybar () const override |
bool | supports_yaw_passthrough () const override |
void | servo_test () 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 () |
virtual bool | parameter_check (bool display_msg) const |
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 |
virtual void | set_acro_tail (bool set) |
virtual void | ext_gyro_gain (float gain) |
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 |
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 22 of file AP_MotorsHeli_Quad.h.
|
inline |
|
overridevirtual |
Implements AP_MotorsHeli.
Definition at line 100 of file AP_MotorsHeli_Quad.cpp.
Referenced by calculate_scalars(), and rotor_speed_above_critical().
|
overrideprotectedvirtual |
Implements AP_MotorsHeli.
Definition at line 136 of file AP_MotorsHeli_Quad.cpp.
Referenced by calculate_scalars().
|
overridevirtual |
Implements AP_MotorsHeli.
Definition at line 114 of file AP_MotorsHeli_Quad.cpp.
Referenced by rotor_speed_above_critical().
|
inlineoverridevirtual |
Implements AP_MotorsHeli.
Definition at line 46 of file AP_MotorsHeli_Quad.h.
|
inlineoverridevirtual |
Implements AP_MotorsHeli.
Definition at line 43 of file AP_MotorsHeli_Quad.h.
|
overridevirtual |
Implements AP_MotorsHeli.
Definition at line 159 of file AP_MotorsHeli_Quad.cpp.
Referenced by rotor_speed_above_critical().
|
inlineoverridevirtual |
Reimplemented from AP_MotorsHeli.
Definition at line 61 of file AP_MotorsHeli_Quad.h.
|
overrideprotectedvirtual |
Implements AP_MotorsHeli.
Definition at line 47 of file AP_MotorsHeli_Quad.cpp.
|
overrideprotectedvirtual |
Implements AP_MotorsHeli.
Definition at line 195 of file AP_MotorsHeli_Quad.cpp.
|
overridevirtual |
Implements AP_MotorsHeli.
Definition at line 71 of file AP_MotorsHeli_Quad.cpp.
Referenced by AP_MotorsHeli_Quad().
|
inlineoverridevirtual |
Implements AP_MotorsHeli.
Definition at line 49 of file AP_MotorsHeli_Quad.h.
|
overridevirtual |
Implements AP_MotorsHeli.
Definition at line 279 of file AP_MotorsHeli_Quad.cpp.
Referenced by supports_yaw_passthrough().
|
overridevirtual |
Implements AP_MotorsHeli.
Definition at line 94 of file AP_MotorsHeli_Quad.cpp.
Referenced by AP_MotorsHeli_Quad().
|
overridevirtual |
Implements AP_MotorsHeli.
Definition at line 32 of file AP_MotorsHeli_Quad.cpp.
Referenced by AP_MotorsHeli_Quad().
|
inlineoverridevirtual |
Reimplemented from AP_MotorsHeli.
Definition at line 64 of file AP_MotorsHeli_Quad.h.
|
overrideprotectedvirtual |
Implements AP_MotorsHeli.
Definition at line 170 of file AP_MotorsHeli_Quad.cpp.
|
protected |
Definition at line 95 of file AP_MotorsHeli_Quad.h.
Referenced by calculate_roll_pitch_collective_factors(), and move_actuators().
|
protected |
Definition at line 94 of file AP_MotorsHeli_Quad.h.
Referenced by calculate_roll_pitch_collective_factors(), and move_actuators().
|
protected |
Definition at line 93 of file AP_MotorsHeli_Quad.h.
Referenced by calculate_roll_pitch_collective_factors(), and move_actuators().
|
protected |
Definition at line 87 of file AP_MotorsHeli_Quad.h.
Referenced by calculate_armed_scalars(), calculate_scalars(), get_desired_rotor_speed(), get_main_rotor_speed(), init_outputs(), move_actuators(), rotor_speed_above_critical(), set_desired_rotor_speed(), and update_motor_control().
|
protected |
Definition at line 90 of file AP_MotorsHeli_Quad.h.
Referenced by init_outputs(), and move_actuators().
|
protected |
Definition at line 96 of file AP_MotorsHeli_Quad.h.
Referenced by calculate_roll_pitch_collective_factors(), and move_actuators().
|
static |
Definition at line 70 of file AP_MotorsHeli_Quad.h.
Referenced by AP_MotorsHeli_Quad().