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, int channelInjDegrees, int injectorStartAngle, int crankAngle)
 
static void calculateIgnitionAngle (const uint16_t dwellAngle, const uint16_t channelIgnDegrees, int8_t advance, int *pEndAngle, int *pStartAngle)
 
static void calculateIgnitionTrailingRotary (uint16_t dwellAngle, int rotarySplitDegrees, int leadIgnitionAngle, int *pEndAngle, int *pStartAngle)
 
static uint32_t calculateIgnitionTimeout (const IgnitionSchedule &schedule, int startAngle, int channelIgnDegrees, int crankAngle)
 

Variables

int ignition1StartAngle
 
int ignition1EndAngle
 
int channel1IgnDegrees
 
int ignition2StartAngle
 
int ignition2EndAngle
 
int channel2IgnDegrees
 
int ignition3StartAngle
 
int ignition3EndAngle
 
int channel3IgnDegrees
 
int ignition4StartAngle
 
int ignition4EndAngle
 
int channel4IgnDegrees
 
int channel1InjDegrees
 
int channel2InjDegrees
 
int channel3InjDegrees
 
int channel4InjDegrees
 

Function Documentation

◆ calculateIgnitionAngle()

static void calculateIgnitionAngle ( const uint16_t  dwellAngle,
const uint16_t  channelIgnDegrees,
int8_t  advance,
int pEndAngle,
int pStartAngle 
)
inlinestatic
Here is the caller graph for this function:

◆ calculateIgnitionTimeout()

static uint32_t calculateIgnitionTimeout ( const IgnitionSchedule schedule,
int  startAngle,
int  channelIgnDegrees,
int  crankAngle 
)
inlinestatic
Here is the caller graph for this function:

◆ calculateIgnitionTrailingRotary()

static void calculateIgnitionTrailingRotary ( uint16_t  dwellAngle,
int  rotarySplitDegrees,
int  leadIgnitionAngle,
int pEndAngle,
int pStartAngle 
)
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,
int  channelInjDegrees,
int  injectorStartAngle,
int  crankAngle 
)
inlinestatic
Here is the caller graph for this function:

Variable Documentation

◆ channel1IgnDegrees

int channel1IgnDegrees
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)

◆ 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)

◆ channel2IgnDegrees

int channel2IgnDegrees
extern

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

◆ channel2InjDegrees

int channel2InjDegrees
extern

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

◆ channel3IgnDegrees

int channel3IgnDegrees
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

◆ channel4IgnDegrees

int channel4IgnDegrees
extern

The number of crank degrees until cylinder 2 (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

◆ ignition1EndAngle

int ignition1EndAngle
extern

◆ ignition1StartAngle

int ignition1StartAngle
extern

◆ ignition2EndAngle

int ignition2EndAngle
extern

◆ ignition2StartAngle

int ignition2StartAngle
extern

◆ ignition3EndAngle

int ignition3EndAngle
extern

◆ ignition3StartAngle

int ignition3StartAngle
extern

◆ ignition4EndAngle

int ignition4EndAngle
extern

◆ ignition4StartAngle

int ignition4StartAngle
extern