mirror of
https://github.com/stevenhowes/MX5-Arduino.git
synced 2026-05-27 00:03:37 +01:00
Remove sequential, add rev limiter, battery, many other things
This commit is contained in:
+8
-2
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user