You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Settings.md
+23-3Lines changed: 23 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1302,13 +1302,33 @@ Fixed-wing rate stabilisation I-gain for YAW
1302
1302
1303
1303
---
1304
1304
1305
-
### fw_iterm_limit_stick_position
1305
+
### fw_iterm_lock_engage_threshold
1306
1306
1307
-
Iterm is not allowed to grow when stick position is above threshold. This solves the problem of bounceback or followthrough when full stick deflection is applied on poorely tuned fixed wings. In other words, stabilization is partialy disabled when pilot is actively controlling the aircraft and active when sticks are not touched. `0` mean stick is in center position, `1` means it is fully deflected to either side
1307
+
Defines error rate (in percents of max rate) when Iterm Lock is engaged when sticks are release. Iterm Lock will stay active until error drops below this number
1308
1308
1309
1309
| Default | Min | Max |
1310
1310
| --- | --- | --- |
1311
-
| 0.5 | 0 | 1 |
1311
+
| 10 | 5 | 25 |
1312
+
1313
+
---
1314
+
1315
+
### fw_iterm_lock_rate_threshold
1316
+
1317
+
Defines rate percentage when full P I and D attenuation should happen. 100 disables Iterm Lock for P and D term
1318
+
1319
+
| Default | Min | Max |
1320
+
| --- | --- | --- |
1321
+
| 40 | 10 | 100 |
1322
+
1323
+
---
1324
+
1325
+
### fw_iterm_lock_time_max_ms
1326
+
1327
+
Defines max time in milliseconds for how long ITerm Lock will shut down Iterm after sticks are release
Copy file name to clipboardExpand all lines: src/main/fc/settings.yaml
+18-6Lines changed: 18 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1934,12 +1934,6 @@ groups:
1934
1934
field: fixedWingCoordinatedPitchGain
1935
1935
min: 0
1936
1936
max: 2
1937
-
- name: fw_iterm_limit_stick_position
1938
-
description: "Iterm is not allowed to grow when stick position is above threshold. This solves the problem of bounceback or followthrough when full stick deflection is applied on poorely tuned fixed wings. In other words, stabilization is partialy disabled when pilot is actively controlling the aircraft and active when sticks are not touched. `0` mean stick is in center position, `1` means it is fully deflected to either side"
1939
-
default_value: 0.5
1940
-
field: fixedWingItermLimitOnStickPosition
1941
-
min: 0
1942
-
max: 1
1943
1937
- name: fw_yaw_iterm_freeze_bank_angle
1944
1938
description: "Yaw Iterm is frozen when bank angle is above this threshold [degrees]. This solves the problem of the rudder counteracting turns by partially disabling yaw stabilization when making banked turns. Setting to 0 (the default) disables this feature. Only applies when autopilot is not active and TURN ASSIST is disabled."
1945
1939
default_value: 0
@@ -2233,6 +2227,24 @@ groups:
2233
2227
field: fixedWingLevelTrimGain
2234
2228
min: 0
2235
2229
max: 20
2230
+
- name: fw_iterm_lock_time_max_ms
2231
+
description: Defines max time in milliseconds for how long ITerm Lock will shut down Iterm after sticks are release
2232
+
default_value: 500
2233
+
field: fwItermLockTimeMaxMs
2234
+
min: 100
2235
+
max: 1000
2236
+
- name: fw_iterm_lock_rate_threshold
2237
+
description: Defines rate percentage when full P I and D attenuation should happen. 100 disables Iterm Lock for P and D term
2238
+
field: fwItermLockRateLimit
2239
+
default_value: 40
2240
+
min: 10
2241
+
max: 100
2242
+
- name: fw_iterm_lock_engage_threshold
2243
+
description: Defines error rate (in percents of max rate) when Iterm Lock is engaged when sticks are release. Iterm Lock will stay active until error drops below this number
Copy file name to clipboardExpand all lines: src/main/flight/pid.h
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -121,7 +121,6 @@ typedef struct pidProfile_s {
121
121
floatfixedWingReferenceAirspeed; // Reference tuning airspeed for the airplane - the speed for which PID gains are tuned
122
122
floatfixedWingCoordinatedYawGain; // This is the gain of the yaw rate required to keep the yaw rate consistent with the turn rate for a coordinated turn.
123
123
floatfixedWingCoordinatedPitchGain; // This is the gain of the pitch rate to keep the pitch angle constant during coordinated turns.
124
-
floatfixedWingItermLimitOnStickPosition; //Do not allow Iterm to grow when stick position is above this point
125
124
uint16_tfixedWingYawItermBankFreeze; // Freeze yaw Iterm when bank angle is more than this many degrees
0 commit comments