mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-21 15:25:36 +03:00
Enable Faster cycletimes (Sample Rates) on all targets // More automatic looptime calculations
cleanup
This commit is contained in:
parent
981bddf182
commit
f5de06c59e
12 changed files with 72 additions and 25 deletions
|
@ -580,6 +580,9 @@ void init(void)
|
|||
afatfs_init();
|
||||
#endif
|
||||
|
||||
if (masterConfig.gyro_lpf) masterConfig.pid_process_denom = 1; // When gyro set to 1khz always set pid speed 1:1 to sampling speed
|
||||
setTargetPidLooptime(masterConfig.pid_process_denom); // Initialize pid looptime
|
||||
|
||||
#ifdef BLACKBOX
|
||||
initBlackbox();
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue