Speeduino
Loading...
Searching...
No Matches
Functions
schedule_calcs.hpp File Reference
#include "scheduler.h"
#include "crankMaths.h"
#include "maths.h"
#include "timers.h"
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 pwDegrees, int16_t injChannelDegrees, uint16_t injAngle)
 
static uint32_t _calculateAngularTime (const Schedule &schedule, uint16_t eventAngle, uint16_t crankAngle, uint16_t maxAngle)
 
static uint16_t _adjustToTDC (int16_t angle, uint16_t angleOffset, uint16_t maxAngle)
 
static uint32_t _calculateAngularTime (const Schedule &schedule, uint16_t angleOffset, uint16_t eventAngle, uint16_t crankAngle, uint16_t maxAngle)
 
static uint32_t calculateInjectorTimeout (const FuelSchedule &schedule, int16_t openAngle, int16_t crankAngle)
 
static int16_t _calculateSparkAngle (const IgnitionSchedule &schedule, int8_t advance)
 
static int16_t _calculateCoilChargeAngle (uint16_t dwellAngle, int16_t dischargeAngle)
 
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)
 
static void adjustCrankAngle (IgnitionSchedule &schedule, int16_t crankAngle)
 

Function Documentation

◆ _adjustToTDC()

static uint16_t _adjustToTDC ( int16_t  angle,
uint16_t  angleOffset,
uint16_t  maxAngle 
)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _calculateAngularTime() [1/2]

static uint32_t _calculateAngularTime ( const Schedule schedule,
uint16_t  angleOffset,
uint16_t  eventAngle,
uint16_t  crankAngle,
uint16_t  maxAngle 
)
inlinestatic
Here is the call graph for this function:

◆ _calculateAngularTime() [2/2]

static uint32_t _calculateAngularTime ( const Schedule schedule,
uint16_t  eventAngle,
uint16_t  crankAngle,
uint16_t  maxAngle 
)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _calculateCoilChargeAngle()

static int16_t _calculateCoilChargeAngle ( uint16_t  dwellAngle,
int16_t  dischargeAngle 
)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _calculateIgnitionTimeout()

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

◆ _calculateSparkAngle()

static int16_t _calculateSparkAngle ( const IgnitionSchedule schedule,
int8_t  advance 
)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ adjustCrankAngle()

static void adjustCrankAngle ( IgnitionSchedule schedule,
int16_t  crankAngle 
)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ calculateIgnitionAngles()

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

◆ calculateIgnitionTrailingRotary()

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

◆ calculateInjectorStartAngle()

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

◆ calculateInjectorTimeout()

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