Skip to content

Commit 10ae664

Browse files
committed
Initialize pidGainsUpdateRequired to true for proper PID gain updates
1 parent c1e2112 commit 10ae664

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/flight/pid.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ static EXTENDED_FASTRAM pt1Filter_t headingHoldRateFilter;
126126
static EXTENDED_FASTRAM pt1Filter_t fixedWingTpaFilter;
127127

128128
// Thrust PID Attenuation factor. 0.0f means fully attenuated, 1.0f no attenuation is applied
129-
STATIC_FASTRAM bool pidGainsUpdateRequired;
129+
STATIC_FASTRAM bool pidGainsUpdateRequired= true;
130130
FASTRAM int16_t axisPID[FLIGHT_DYNAMICS_INDEX_COUNT];
131131

132132
#ifdef USE_BLACKBOX

0 commit comments

Comments
 (0)