Skip to content

Commit

Permalink
default PID Denom 2 for F411 (#994)
Browse files Browse the repository at this point in the history
* default pid denom 2 only for F411 (and unused F3)
  • Loading branch information
nerdCopter authored Apr 2, 2024
1 parent e82f193 commit 1259124
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/main/flight/pid.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,10 @@ extern bool linearThrustEnabled;

PG_REGISTER_WITH_RESET_TEMPLATE(pidConfig_t, pidConfig, PG_PID_CONFIG, 2);

#ifdef STM32F10X
#define PID_PROCESS_DENOM_DEFAULT 1
#elif defined(USE_GYRO_SPI_MPU6000) || defined(USE_GYRO_SPI_MPU6500) || defined(USE_GYRO_SPI_ICM20689) || defined(USE_GYRO_SPI_ICM42605) || defined(USE_GYRO_SPI_ICM42688P) || defined(USE_ACCGYRO_BMI160) || defined(USE_ACCGYRO_BMI270)
#define PID_PROCESS_DENOM_DEFAULT 1
#else
#if defined(STM32F3) || defined(STM32F411xE)
#define PID_PROCESS_DENOM_DEFAULT 2
#else
#define PID_PROCESS_DENOM_DEFAULT 1
#endif

#ifndef DEFAULT_PIDS_ROLL
Expand Down

0 comments on commit 1259124

Please sign in to comment.