mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Merge pull request #1707 from betaflight/pid_config_init
Add PID config initialisation
This commit is contained in:
commit
b19e439361
8 changed files with 57 additions and 40 deletions
|
@ -451,6 +451,7 @@ void init(void)
|
|||
// gyro.targetLooptime set in sensorsAutodetect(), so we are ready to call pidSetTargetLooptime()
|
||||
pidSetTargetLooptime((gyro.targetLooptime + LOOPTIME_SUSPEND_TIME) * masterConfig.pid_process_denom); // Initialize pid looptime
|
||||
pidInitFilters(¤tProfile->pidProfile);
|
||||
pidInitConfig(¤tProfile->pidProfile);
|
||||
|
||||
imuInit();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue