Remove Int based PID loop (All target support)

This commit is contained in:
borisbstyle 2016-08-23 00:56:22 +02:00
parent c585ad5ac1
commit f9c827c726
1 changed files with 1 additions and 11 deletions

View File

@ -815,6 +815,7 @@ void taskMainPidLoopCheck(void)
{
static uint32_t previousTime;
static bool runTaskMainSubprocesses;
static uint8_t pidUpdateCountdown;
cycleTime = micros() - previousTime;
previousTime = micros();
@ -824,17 +825,6 @@ void taskMainPidLoopCheck(void)
debug[1] = averageSystemLoadPercent;
}
const uint32_t startTime = micros();
while (true) {
if (gyroSyncCheckUpdate(&gyro)) {
if (debugMode == DEBUG_PIDLOOP) {debug[0] = micros() - startTime;} // time spent busy waiting
break;
}
}
static uint8_t pidUpdateCountdown;
if (runTaskMainSubprocesses) {
subTaskMainSubprocesses();
runTaskMainSubprocesses = false;