Skip to content

Commit

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

0 comments on commit ac099ee

Please sign in to comment.