mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 04:15:44 +03:00
Fix default PID DENOM (#12509)
* Set default PID DENOM * Fixes after Karate review * Fixes after Karate review v2 * Use gyro.sampleRateHz * Fixes after discussion
This commit is contained in:
parent
e126f1c4a4
commit
7dffe25ed1
5 changed files with 18 additions and 10 deletions
|
@ -90,13 +90,9 @@ pt1Filter_t throttleLpf;
|
|||
|
||||
PG_REGISTER_WITH_RESET_TEMPLATE(pidConfig_t, pidConfig, PG_PID_CONFIG, 3);
|
||||
|
||||
#if !defined(DEFAULT_PID_PROCESS_DENOM)
|
||||
#if defined(STM32F411xE)
|
||||
#define DEFAULT_PID_PROCESS_DENOM 2
|
||||
#else
|
||||
#ifndef DEFAULT_PID_PROCESS_DENOM
|
||||
#define DEFAULT_PID_PROCESS_DENOM 1
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef USE_RUNAWAY_TAKEOFF
|
||||
PG_RESET_TEMPLATE(pidConfig_t, pidConfig,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue