mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 04:45:24 +03:00
do not include serial nor telemetry handler in cycletime calculation
Conflicts: src/mw.c
This commit is contained in:
parent
bb356057fc
commit
d6545efa10
1 changed files with 4 additions and 2 deletions
|
@ -536,12 +536,14 @@ void loop(void)
|
|||
loopTime = currentTime + masterConfig.looptime;
|
||||
|
||||
computeIMU(¤tProfile.accelerometerTrims, masterConfig.mixerConfiguration);
|
||||
annexCode();
|
||||
// Measure loop rate just afer reading the sensors
|
||||
|
||||
// Measure loop rate just after reading the sensors
|
||||
currentTime = micros();
|
||||
cycleTime = (int32_t)(currentTime - previousTime);
|
||||
previousTime = currentTime;
|
||||
|
||||
annexCode();
|
||||
|
||||
updateAutotuneState();
|
||||
|
||||
#ifdef MAG
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue