mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 02:43:33 +08:00
delete RATTITUDE flight mode
This commit is contained in:
@@ -172,14 +172,6 @@ MulticopterRateControl::Run()
|
||||
if (!_v_control_mode.flag_control_attitude_enabled) {
|
||||
manual_rate_sp = true;
|
||||
}
|
||||
|
||||
// Check if we are in rattitude mode and the pilot is within the center threshold on pitch and roll
|
||||
// if true then use published rate setpoint, otherwise generate from manual_control_setpoint (like acro)
|
||||
if (_v_control_mode.flag_control_rattitude_enabled) {
|
||||
manual_rate_sp =
|
||||
(fabsf(_manual_control_setpoint.y) > _param_mc_ratt_th.get()) ||
|
||||
(fabsf(_manual_control_setpoint.x) > _param_mc_ratt_th.get());
|
||||
}
|
||||
}
|
||||
|
||||
if (manual_rate_sp) {
|
||||
|
||||
@@ -160,8 +160,6 @@ private:
|
||||
(ParamFloat<px4::params::MC_ACRO_SUPEXPO>) _param_mc_acro_supexpo, /**< superexpo stick curve shape (roll & pitch) */
|
||||
(ParamFloat<px4::params::MC_ACRO_SUPEXPOY>) _param_mc_acro_supexpoy, /**< superexpo stick curve shape (yaw) */
|
||||
|
||||
(ParamFloat<px4::params::MC_RATT_TH>) _param_mc_ratt_th,
|
||||
|
||||
(ParamBool<px4::params::MC_BAT_SCALE_EN>) _param_mc_bat_scale_en,
|
||||
|
||||
(ParamInt<px4::params::CBRK_RATE_CTRL>) _param_cbrk_rate_ctrl
|
||||
|
||||
Reference in New Issue
Block a user