#include "scheduler.h"
#include "config_pages.h"
#include "statuses.h"
Go to the source code of this file.
◆ applyOverDwellProtection()
Check that no ignition channel has been charging the coil for too long.
The over dwell protection system runs independently of the standard ignition schedules and monitors the time that each ignition output has been active. If the active time exceeds the tune defined amount, the output will be ended to prevent damage to coils.
- Note
- Must be called once per millisecond by an external timer.
◆ calculateIgnitionAngles()
Calculate the charge & discharge angles for all ignition channels.
- Parameters
-
| page2 | The tune |
| page4 | The tune |
| current | Current system state |
◆ initialiseIgnitionSchedules()
Initialise all ignition schedules.
◆ setIgnitionChannels()
Schedule all ignition channels.
- Parameters
-
| current | Current system state |
| crankAngle | Crank angle |
| dwellTime | Target dwell time |
◆ startIgnitionSchedulers()
Start the timers that drive schedulers
◆ stopIgnitionSchedulers()
Stop the timers that drive schedulers
◆ ignitionSchedule1
◆ ignitionSchedule2
◆ ignitionSchedule3
◆ ignitionSchedule4
◆ ignitionSchedule5