Speeduino
Loading...
Searching...
No Matches
Functions | Variables
scheduler_fuel_controller.h File Reference

The fuel schedule controller: manages the timing of opening and closing up to 8 injectors. More...

#include "scheduler.h"
#include "config_pages.h"
#include "statuses.h"
#include "fuel_calcs.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

uint16_t setFuelChannelSchedules (const statuses &current)
 Schedule all fuel channels.
 
void applyPwToInjectorChannels (const pulseWidths &pulse_widths, const config2 &page2, const config4 &page4, const config6 &page6, statuses &current)
 Apply the calculated pulse widths to the fuel schedules.
 
void startFuelSchedulers (void)
 Start the timers that drive schedulers.
 
void stopFuelSchedulers (void)
 Stop the timers that drive schedulers.
 
void beginInjectorPriming (const statuses &current, const config4 &page4)
 Start priming the fuel system.
 
void initialiseFuelSchedules (statuses &current, const config2 &page2, const config4 &page4)
 Initialise this module.
 

Variables

FuelSchedule fuelSchedule1
 
FuelSchedule fuelSchedule2
 
FuelSchedule fuelSchedule3
 
FuelSchedule fuelSchedule4
 

Detailed Description

The fuel schedule controller: manages the timing of opening and closing up to 8 injectors.

Anything related to controlling the fuel schedules should be done within this controller.

Function Documentation

◆ applyPwToInjectorChannels()

void applyPwToInjectorChannels ( const pulseWidths pulse_widths,
const config2 page2,
const config4 page4,
const config6 page6,
statuses current 
)

Apply the calculated pulse widths to the fuel schedules.

Parameters
pulseWidthsResult of computePulseWidths()
page2Tune settings
page4Tune settings
page6Tune settings
currentCurrent system state
Here is the caller graph for this function:

◆ beginInjectorPriming()

void beginInjectorPriming ( const statuses current,
const config4 page4 
)

Start priming the fuel system.

Perform the injector priming pulses. Set these to run at an arbitrary time in the future (100us). The prime pulse value is in ms*10, so need to multiple by 100 to get to uS

Here is the call graph for this function:
Here is the caller graph for this function:

◆ initialiseFuelSchedules()

void initialiseFuelSchedules ( statuses current,
const config2 page2,
const config4 page4 
)

Initialise this module.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setFuelChannelSchedules()

uint16_t setFuelChannelSchedules ( const statuses current)

Schedule all fuel channels.

Parameters
currentCurrent system state
Returns
The injector angle used.

◆ startFuelSchedulers()

void startFuelSchedulers ( void  )

Start the timers that drive schedulers.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ stopFuelSchedulers()

void stopFuelSchedulers ( void  )

Stop the timers that drive schedulers.

Here is the call graph for this function:

Variable Documentation

◆ fuelSchedule1

FuelSchedule fuelSchedule1
extern

◆ fuelSchedule2

FuelSchedule fuelSchedule2
extern

◆ fuelSchedule3

FuelSchedule fuelSchedule3
extern

◆ fuelSchedule4

FuelSchedule fuelSchedule4
extern