Speeduino
Loading...
Searching...
No Matches
Macros | 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.

Macros

#define MIN_CYCLES_FOR_ENDCOMPARE   6
 

Functions

static uint16_t calculateInjectorStartAngle (uint16_t pwDegrees, int16_t injChannelDegrees, uint16_t injAngle)
 
static uint32_t _calculateInjectorTimeout (const FuelSchedule &schedule, uint16_t openAngle, uint16_t crankAngle)
 
static int _adjustToInjChannel (int angle, int channelInjDegrees)
 
static uint32_t calculateInjectorTimeout (const FuelSchedule &schedule, int channelInjDegrees, int openAngle, 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, int16_t startAngle, int16_t crankAngle)
 
static uint16_t _adjustToIgnChannel (int angle, int channelInjDegrees)
 
static uint32_t calculateIgnitionTimeout (const IgnitionSchedule &schedule, int startAngle, int channelIgnDegrees, int crankAngle)
 
void adjustCrankAngle (IgnitionSchedule &schedule, int endAngle, int crankAngle)
 

Macro Definition Documentation

◆ MIN_CYCLES_FOR_ENDCOMPARE

#define MIN_CYCLES_FOR_ENDCOMPARE   6

Function Documentation

◆ _adjustToIgnChannel()

static uint16_t _adjustToIgnChannel ( int  angle,
int  channelInjDegrees 
)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _adjustToInjChannel()

static int _adjustToInjChannel ( int  angle,
int  channelInjDegrees 
)
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  startAngle,
int16_t  crankAngle 
)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _calculateInjectorTimeout()

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

◆ adjustCrankAngle()

void adjustCrankAngle ( IgnitionSchedule schedule,
int  endAngle,
int  crankAngle 
)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ calculateIgnitionAngle()

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

◆ calculateIgnitionTimeout()

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

◆ calculateIgnitionTrailingRotary()

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