1
0
Fork 0
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:
Trey Marc 2014-06-06 12:53:31 +02:00 committed by Dominic Clifton
parent bb356057fc
commit d6545efa10

View file

@ -536,12 +536,14 @@ void loop(void)
loopTime = currentTime + masterConfig.looptime;
computeIMU(&currentProfile.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