Skip to content

Commit

Permalink
Thanks ledvinap
Browse files Browse the repository at this point in the history
  • Loading branch information
haslinghuis committed Apr 16, 2024
1 parent ac099ee commit 70fe623
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/config/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,9 @@ void validateAndFixGyroConfig(void)
if (motorConfig()->dev.motorPwmProtocol == PWM_TYPE_DSHOT600) {
motorConfigMutable()->dev.motorPwmProtocol = PWM_TYPE_DSHOT300;
}
if (gyro.sampleRateHz > 4000) {
pidConfigMutable()->pid_process_denom = MAX(2, pidConfig()->pid_process_denom);
}
}
#endif // USE_DSHOT && USE_PID_DENOM_CHECK
switch (motorConfig()->dev.motorPwmProtocol) {
Expand Down

0 comments on commit 70fe623

Please sign in to comment.