Skip to content

Commit 3a06d15

Browse files
committed
FW autotrim: replace servo_autotrim_iterm_rate_limit setting with hardcoded constant
The configurable CLI setting added in #11215 was based on a default of 2 with no empirical basis. Blackbox analysis of real flight data shows i-term rates of 4–9 units/s (median) and up to 30 units/s (90th percentile) during settled cruise flight. A hardcoded constant of 30 gives reasonable protection against turbulence-driven i-term spikes without exposing a tuning knob that pilots cannot meaningfully calibrate.
1 parent 989da80 commit 3a06d15

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/main/flight/servos.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,7 @@ void processServoAutotrimMode(void)
603603
}
604604
}
605605

606+
606607
void processContinuousServoAutotrim(const float dT)
607608
{
608609
static timeMs_t lastUpdateTimeMs;

0 commit comments

Comments
 (0)