Remove sequential, add rev limiter, battery, many other things

This commit is contained in:
Steve Howes
2018-09-13 20:24:47 +01:00
parent ad2f798089
commit 913692694f
13 changed files with 224 additions and 89 deletions
+8 -2
View File
@@ -29,7 +29,7 @@ void schedule_process()
task_coil2_charge = 0;
tasks++;
}
/*
// Coil 3
if((task_coil3_fire > 0) && (micros() > task_coil3_fire))
{
@@ -55,7 +55,7 @@ void schedule_process()
task_coil4_charge = 0;
tasks++;
}
*/
// Only carry on to the lower priority stuff if we did nothing else
if(tasks > 0)
return;
@@ -71,6 +71,11 @@ void schedule_process()
task_rpm = micros() + task_rpm_interval;
task_rpm_run();
tasks++;
}else if(micros() > task_battery)
{
task_battery = micros() + task_battery_interval;
task_battery_run();
tasks++;
}
// We never high and low at the same time
@@ -97,3 +102,4 @@ void schedule_process()
}
}