Speeduino
Loading...
Searching...
No Matches
Functions | Variables
schedule_calcs.h File Reference
#include <stdint.h>
#include "scheduler.h"
#include "schedule_calcs.hpp"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static uint16_t calculateInjectorStartAngle (uint16_t PWdivTimerPerDegree, int16_t injChannelDegrees, uint16_t injAngle)
 
static uint32_t calculateInjectorTimeout (const FuelSchedule &schedule, int16_t injectorStartAngle, int16_t crankAngle)
 
static void calculateIgnitionAngles (IgnitionSchedule &schedule, uint16_t dwellAngle, int8_t advance)
 
static void calculateIgnitionTrailingRotary (IgnitionSchedule &leading, uint16_t dwellAngle, int16_t rotarySplitDegrees, IgnitionSchedule &trailing)
 
static uint32_t _calculateIgnitionTimeout (const IgnitionSchedule &schedule, int16_t crankAngle)
 

Variables

int channel1InjDegrees
 
int channel2InjDegrees
 
int channel3InjDegrees
 
int channel4InjDegrees
 

Function Documentation

◆ _calculateIgnitionTimeout()

static uint32_t _calculateIgnitionTimeout ( const IgnitionSchedule schedule,
int16_t  crankAngle 
)
inlinestatic
Here is the caller graph for this function:

◆ calculateIgnitionAngles()

static void calculateIgnitionAngles ( IgnitionSchedule schedule,
uint16_t  dwellAngle,
int8_t  advance 
)
inlinestatic
Here is the caller graph for this function:

◆ calculateIgnitionTrailingRotary()

static void calculateIgnitionTrailingRotary ( IgnitionSchedule leading,
uint16_t  dwellAngle,
int16_t  rotarySplitDegrees,
IgnitionSchedule trailing 
)
inlinestatic
Here is the caller graph for this function:

◆ calculateInjectorStartAngle()

static uint16_t calculateInjectorStartAngle ( uint16_t  PWdivTimerPerDegree,
int16_t  injChannelDegrees,
uint16_t  injAngle 
)
inlinestatic
Here is the caller graph for this function:

◆ calculateInjectorTimeout()

static uint32_t calculateInjectorTimeout ( const FuelSchedule schedule,
int16_t  injectorStartAngle,
int16_t  crankAngle 
)
inlinestatic
Here is the caller graph for this function:

Variable Documentation

◆ channel1InjDegrees

int channel1InjDegrees
extern

The number of crank degrees until cylinder 1 is at TDC (This is obviously 0 for virtually ALL engines, but there's some weird ones)

◆ channel2InjDegrees

int channel2InjDegrees
extern

The number of crank degrees until cylinder 2 (and 5/6/7/8) is at TDC

◆ channel3InjDegrees

int channel3InjDegrees
extern

The number of crank degrees until cylinder 3 (and 5/6/7/8) is at TDC

◆ channel4InjDegrees

int channel4InjDegrees
extern

The number of crank degrees until cylinder 4 (and 5/6/7/8) is at TDC