1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-25 17:25:18 +03:00

remove level trim deadband setting

This commit is contained in:
Alexander van Saase 2021-06-09 11:13:19 +02:00
parent 81fdf6d5ae
commit 78a839e233
6 changed files with 2 additions and 20 deletions

View file

@ -1272,16 +1272,6 @@ Limits max/min I-term value in stabilization PID controller in case of Fixed Win
--- ---
### fw_level_pitch_deadband
Deadband for automatic leveling when AUTOLEVEL mode is used.
| Default | Min | Max |
| --- | --- | --- |
| 5 | 0 | 20 |
---
### fw_level_pitch_gain ### fw_level_pitch_gain
I-gain for the pitch trim for self-leveling flight modes. Higher values means that AUTOTRIM will be faster but might introduce oscillations I-gain for the pitch trim for self-leveling flight modes. Higher values means that AUTOTRIM will be faster but might introduce oscillations

View file

@ -100,7 +100,7 @@ bool areSticksInApModePosition(uint16_t ap_mode)
bool areSticksDeflected(void) bool areSticksDeflected(void)
{ {
return ABS(rcCommand[ROLL]) > rcControlsConfig()->control_deadband || ABS(rcCommand[PITCH]) > rcControlsConfig()->control_deadband || ABS(rcCommand[YAW]) > rcControlsConfig()->control_deadband; return (ABS(rcCommand[ROLL]) > rcControlsConfig()->control_deadband) || (ABS(rcCommand[PITCH]) > rcControlsConfig()->control_deadband) || (ABS(rcCommand[YAW]) > rcControlsConfig()->control_deadband);
} }
throttleStatus_e FAST_CODE NOINLINE calculateThrottleStatus(throttleStatusType_e type) throttleStatus_e FAST_CODE NOINLINE calculateThrottleStatus(throttleStatusType_e type)

View file

@ -85,7 +85,7 @@ typedef struct rcControlsConfig_s {
uint8_t deadband; // introduce a deadband around the stick center for pitch and roll axis. Must be greater than zero. uint8_t deadband; // introduce a deadband around the stick center for pitch and roll axis. Must be greater than zero.
uint8_t yaw_deadband; // introduce a deadband around the stick center for yaw axis. Must be greater than zero. uint8_t yaw_deadband; // introduce a deadband around the stick center for yaw axis. Must be greater than zero.
uint8_t pos_hold_deadband; // Deadband for position hold uint8_t pos_hold_deadband; // Deadband for position hold
uint8_t control_deadband; // General deadband to check if sticks are deflected uint8_t control_deadband; // General deadband to check if sticks are deflected, us PWM.
uint8_t alt_hold_deadband; // Defines the neutral zone of throttle stick during altitude hold uint8_t alt_hold_deadband; // Defines the neutral zone of throttle stick during altitude hold
uint16_t mid_throttle_deadband; // default throttle deadband from MIDRC uint16_t mid_throttle_deadband; // default throttle deadband from MIDRC
uint8_t airmodeHandlingType; // Defaults to ANTI_WINDUP triggered at sticks centered uint8_t airmodeHandlingType; // Defaults to ANTI_WINDUP triggered at sticks centered

View file

@ -2123,12 +2123,6 @@ groups:
field: fixedWingLevelTrimGain field: fixedWingLevelTrimGain
min: 0 min: 0
max: 20 max: 20
- name: fw_level_pitch_deadband
description: "Deadband for automatic leveling when AUTOLEVEL mode is used."
default_value: 5
field: fixedWingLevelTrimDeadband
min: 0
max: 20
- name: PG_PID_AUTOTUNE_CONFIG - name: PG_PID_AUTOTUNE_CONFIG
type: pidAutotuneConfig_t type: pidAutotuneConfig_t

View file

@ -308,7 +308,6 @@ PG_RESET_TEMPLATE(pidProfile_t, pidProfile,
.fixedWingLevelTrim = SETTING_FW_LEVEL_PITCH_TRIM_DEFAULT, .fixedWingLevelTrim = SETTING_FW_LEVEL_PITCH_TRIM_DEFAULT,
.fixedWingLevelTrimGain = SETTING_FW_LEVEL_PITCH_GAIN_DEFAULT, .fixedWingLevelTrimGain = SETTING_FW_LEVEL_PITCH_GAIN_DEFAULT,
.fixedWingLevelTrimDeadband = SETTING_FW_LEVEL_PITCH_DEADBAND_DEFAULT,
#ifdef USE_SMITH_PREDICTOR #ifdef USE_SMITH_PREDICTOR
.smithPredictorStrength = SETTING_SMITH_PREDICTOR_STRENGTH_DEFAULT, .smithPredictorStrength = SETTING_SMITH_PREDICTOR_STRENGTH_DEFAULT,

View file

@ -165,7 +165,6 @@ typedef struct pidProfile_s {
float fixedWingLevelTrim; float fixedWingLevelTrim;
float fixedWingLevelTrimGain; float fixedWingLevelTrimGain;
float fixedWingLevelTrimDeadband;
#ifdef USE_SMITH_PREDICTOR #ifdef USE_SMITH_PREDICTOR
float smithPredictorStrength; float smithPredictorStrength;
float smithPredictorDelay; float smithPredictorDelay;