APM:Libraries
|
#include <AC_AttitudeControl_Sub.h>
Public Member Functions | |
AC_AttitudeControl_Sub (AP_AHRS_View &ahrs, const AP_Vehicle::MultiCopter &aparm, AP_MotorsMulticopter &motors, float dt) | |
virtual | ~AC_AttitudeControl_Sub () |
AC_PID & | get_rate_roll_pid () |
AC_PID & | get_rate_pitch_pid () |
AC_PID & | get_rate_yaw_pid () |
void | update_althold_lean_angle_max (float throttle_in) override |
void | set_throttle_out (float throttle_in, bool apply_angle_boost, float filt_cutoff) override |
float | get_throttle_boosted (float throttle_in) |
void | set_throttle_mix_min () override |
void | set_throttle_mix_man () override |
void | set_throttle_mix_max () override |
bool | is_throttle_mix_min () const override |
void | rate_controller_run () |
void | parameter_sanity_check () |
Public Member Functions inherited from AC_AttitudeControl | |
AC_AttitudeControl (AP_AHRS_View &ahrs, const AP_Vehicle::MultiCopter &aparm, AP_Motors &motors, float dt) | |
virtual | ~AC_AttitudeControl () |
AC_P & | get_angle_roll_p () |
AC_P & | get_angle_pitch_p () |
AC_P & | get_angle_yaw_p () |
float | get_accel_roll_max () const |
float | get_accel_roll_max_radss () const |
void | set_accel_roll_max (float accel_roll_max) |
void | save_accel_roll_max (float accel_roll_max) |
float | get_accel_pitch_max () const |
float | get_accel_pitch_max_radss () const |
void | set_accel_pitch_max (float accel_pitch_max) |
void | save_accel_pitch_max (float accel_pitch_max) |
float | get_accel_yaw_max () const |
float | get_accel_yaw_max_radss () const |
void | set_accel_yaw_max (float accel_yaw_max) |
void | save_accel_yaw_max (float accel_yaw_max) |
void | set_input_tc (float input_tc) |
void | relax_attitude_controllers () |
void | reset_rate_controller_I_terms () |
void | set_attitude_target_to_current_attitude () |
void | set_yaw_target_to_current_heading () |
void | shift_ef_yaw_target (float yaw_shift_cd) |
void | inertial_frame_reset () |
void | input_quaternion (Quaternion attitude_desired_quat) |
virtual void | input_euler_angle_roll_pitch_euler_rate_yaw (float euler_roll_angle_cd, float euler_pitch_angle_cd, float euler_yaw_rate_cds) |
virtual void | input_euler_angle_roll_pitch_yaw (float euler_roll_angle_cd, float euler_pitch_angle_cd, float euler_yaw_angle_cd, bool slew_yaw) |
void | input_euler_rate_roll_pitch_yaw (float euler_roll_rate_cds, float euler_pitch_rate_cds, float euler_yaw_rate_cds) |
virtual void | input_rate_bf_roll_pitch_yaw (float roll_rate_bf_cds, float pitch_rate_bf_cds, float yaw_rate_bf_cds) |
void | input_rate_bf_roll_pitch_yaw_2 (float roll_rate_bf_cds, float pitch_rate_bf_cds, float yaw_rate_bf_cds) |
void | input_rate_bf_roll_pitch_yaw_3 (float roll_rate_bf_cds, float pitch_rate_bf_cds, float yaw_rate_bf_cds) |
virtual void | input_angle_step_bf_roll_pitch_yaw (float roll_angle_step_bf_cd, float pitch_angle_step_bf_cd, float yaw_angle_step_bf_cd) |
void | euler_rate_to_ang_vel (const Vector3f &euler_rad, const Vector3f &euler_rate_rads, Vector3f &ang_vel_rads) |
bool | ang_vel_to_euler_rate (const Vector3f &euler_rad, const Vector3f &ang_vel_rads, Vector3f &euler_rate_rads) |
void | use_sqrt_controller (bool use_sqrt_cont) |
Vector3f | get_att_target_euler_cd () const |
float | get_att_error_angle_deg () const |
void | rate_bf_roll_target (float rate_cds) |
void | rate_bf_pitch_target (float rate_cds) |
void | rate_bf_yaw_target (float rate_cds) |
float | max_rate_step_bf_roll () |
float | max_rate_step_bf_pitch () |
float | max_rate_step_bf_yaw () |
float | max_angle_step_bf_roll () |
float | max_angle_step_bf_pitch () |
float | max_angle_step_bf_yaw () |
Vector3f | rate_bf_targets () const |
void | bf_feedforward (bool enable_or_disable) |
void | bf_feedforward_save (bool enable_or_disable) |
bool | get_bf_feedforward () |
void | accel_limiting (bool enable_or_disable) |
void | set_throttle_out_unstabilized (float throttle_in, bool reset_attitude_control, float filt_cutoff) |
float | get_throttle_in () const |
float | angle_boost () const |
float | get_althold_lean_angle_max () const |
float | lean_angle_max () const |
void | input_shaping_rate_predictor (Vector2f error_angle, Vector2f &target_ang_vel, float dt) const |
void | ang_vel_limit (Vector3f &euler_rad, float ang_vel_roll_max, float ang_vel_pitch_max, float ang_vel_yaw_max) const |
Vector3f | euler_accel_limit (Vector3f euler_rad, Vector3f euler_accel) |
void | thrust_heading_rotation_angles (Quaternion &att_to_quat, const Quaternion &att_from_quat, Vector3f &att_diff_angle, float &thrust_vec_dot) |
void | attitude_controller_run_quat () |
virtual void | set_throttle_mix_value (float value) |
virtual float | get_throttle_mix (void) const |
virtual void | use_flybar_passthrough (bool passthrough, bool tail_passthrough) |
virtual void | use_leaky_i (bool leaky_i) |
virtual void | set_hover_roll_trim_scalar (float scalar) |
virtual void | passthrough_bf_roll_pitch_rate_yaw (float roll_passthrough, float pitch_passthrough, float yaw_rate_bf_cds) |
virtual void | set_inverted_flight (bool inverted) |
void | control_monitor_log (void) |
float | control_monitor_rms_output_roll (void) const |
float | control_monitor_rms_output_roll_P (void) const |
float | control_monitor_rms_output_roll_D (void) const |
float | control_monitor_rms_output_pitch_P (void) const |
float | control_monitor_rms_output_pitch_D (void) const |
float | control_monitor_rms_output_pitch (void) const |
float | control_monitor_rms_output_yaw (void) const |
Static Public Attributes | |
static const struct AP_Param::GroupInfo | var_info [] |
Static Public Attributes inherited from AC_AttitudeControl | |
static const struct AP_Param::GroupInfo | var_info [] |
Protected Member Functions | |
void | update_throttle_rpy_mix () |
float | get_throttle_avg_max (float throttle_in) |
Protected Member Functions inherited from AC_AttitudeControl | |
Vector3f | update_ang_vel_target_from_att_error (Vector3f attitude_error_rot_vec_rad) |
float | rate_target_to_motor_roll (float rate_actual_rads, float rate_target_rads) |
float | rate_target_to_motor_pitch (float rate_actual_rads, float rate_target_rads) |
virtual float | rate_target_to_motor_yaw (float rate_actual_rads, float rate_target_rads) |
virtual float | get_roll_trim_rad () |
float | get_slew_yaw_rads () |
void | control_monitor_filter_pid (float value, float &rms_P) |
void | control_monitor_update (void) |
Additional Inherited Members | |
Static Public Member Functions inherited from AC_AttitudeControl | |
static float | sqrt_controller (float error, float p, float second_ord_lim, float dt) |
static float | stopping_point (float first_ord_mag, float p, float second_ord_lim) |
static float | input_shaping_angle (float error_angle, float smoothing_gain, float accel_max, float target_ang_vel, float dt) |
static float | input_shaping_ang_vel (float target_ang_vel, float desired_ang_vel, float accel_max, float dt) |
Definition at line 26 of file AC_AttitudeControl_Sub.h.
AC_AttitudeControl_Sub::AC_AttitudeControl_Sub | ( | AP_AHRS_View & | ahrs, |
const AP_Vehicle::MultiCopter & | aparm, | ||
AP_MotorsMulticopter & | motors, | ||
float | dt | ||
) |
Definition at line 169 of file AC_AttitudeControl_Sub.cpp.
|
inlinevirtual |
Definition at line 31 of file AC_AttitudeControl_Sub.h.
|
inlinevirtual |
Implements AC_AttitudeControl.
Definition at line 35 of file AC_AttitudeControl_Sub.h.
|
inlinevirtual |
Implements AC_AttitudeControl.
Definition at line 34 of file AC_AttitudeControl_Sub.h.
|
inlinevirtual |
Implements AC_AttitudeControl.
Definition at line 36 of file AC_AttitudeControl_Sub.h.
|
protected |
Definition at line 240 of file AC_AttitudeControl_Sub.cpp.
Referenced by set_throttle_out().
float AC_AttitudeControl_Sub::get_throttle_boosted | ( | float | throttle_in | ) |
Definition at line 220 of file AC_AttitudeControl_Sub.cpp.
Referenced by get_rate_yaw_pid(), and set_throttle_out().
|
inlineoverridevirtual |
Reimplemented from AC_AttitudeControl.
Definition at line 55 of file AC_AttitudeControl_Sub.h.
|
virtual |
Reimplemented from AC_AttitudeControl.
Definition at line 274 of file AC_AttitudeControl_Sub.cpp.
Referenced by is_throttle_mix_min().
|
virtual |
Implements AC_AttitudeControl.
Definition at line 260 of file AC_AttitudeControl_Sub.cpp.
Referenced by is_throttle_mix_min().
|
inlineoverridevirtual |
Reimplemented from AC_AttitudeControl.
Definition at line 51 of file AC_AttitudeControl_Sub.h.
|
inlineoverridevirtual |
Reimplemented from AC_AttitudeControl.
Definition at line 52 of file AC_AttitudeControl_Sub.h.
|
inlineoverridevirtual |
Reimplemented from AC_AttitudeControl.
Definition at line 50 of file AC_AttitudeControl_Sub.h.
|
overridevirtual |
Implements AC_AttitudeControl.
Definition at line 202 of file AC_AttitudeControl_Sub.cpp.
Referenced by get_rate_yaw_pid().
|
overridevirtual |
Implements AC_AttitudeControl.
Definition at line 187 of file AC_AttitudeControl_Sub.cpp.
Referenced by get_rate_yaw_pid(), and set_throttle_out().
|
protected |
Definition at line 247 of file AC_AttitudeControl_Sub.cpp.
Referenced by rate_controller_run().
|
protected |
Definition at line 74 of file AC_AttitudeControl_Sub.h.
Referenced by update_althold_lean_angle_max().
|
protected |
Definition at line 76 of file AC_AttitudeControl_Sub.h.
Referenced by get_rate_pitch_pid().
|
protected |
Definition at line 75 of file AC_AttitudeControl_Sub.h.
Referenced by get_rate_roll_pid().
|
protected |
Definition at line 77 of file AC_AttitudeControl_Sub.h.
Referenced by get_rate_yaw_pid().
|
protected |
Definition at line 79 of file AC_AttitudeControl_Sub.h.
Referenced by parameter_sanity_check(), and set_throttle_mix_man().
|
protected |
Definition at line 81 of file AC_AttitudeControl_Sub.h.
Referenced by parameter_sanity_check(), and set_throttle_mix_max().
|
protected |
Definition at line 80 of file AC_AttitudeControl_Sub.h.
Referenced by is_throttle_mix_min(), parameter_sanity_check(), and set_throttle_mix_min().
|
static |
Definition at line 64 of file AC_AttitudeControl_Sub.h.
Referenced by AC_AttitudeControl_Sub().