Speeduino
Loading...
Searching...
No Matches
Functions
secondaryTables.cpp File Reference
#include "secondaryTables.h"
#include "corrections.h"
#include "load_source.h"
#include "maths.h"
#include "unit_testing.h"

Functions

static uint8_t lookupVE2 (const config10 &page10, const table3d16RpmLoad &veLookupTable, const statuses &current)
 Looks up and returns the VE value from the secondary fuel table.
 
static bool fuelModeCondSwitchRpmActive (const config10 &page10, const statuses &current)
 
static bool fuelModeCondSwitchMapActive (const config10 &page10, const statuses &current)
 
static bool fuelModeCondSwitchTpsActive (const config10 &page10, const statuses &current)
 
static bool fuelModeCondSwitchEthanolActive (const config10 &page10, const statuses &current)
 
static bool fuelModeCondSwitchActive (const config10 &page10, const statuses &current)
 
static bool fuelModeInputSwitchActive (const config10 &page10)
 
void calculateSecondaryFuel (const config10 &page10, const table3d16RpmLoad &veLookupTable, statuses &current)
 
static int16_t lookupSpark2 (const config10 &page10, const table3d16RpmLoad &sparkLookupTable, const statuses &current)
 
static int8_t constrainAdvance (int16_t advance)
 
static bool sparkModeCondSwitchRpmActive (const config10 &page10, const statuses &current)
 
static bool sparkModeCondSwitchMapActive (const config10 &page10, const statuses &current)
 
static bool sparkModeCondSwitchTpsActive (const config10 &page10, const statuses &current)
 
static bool sparkModeCondSwitchEthanolActive (const config10 &page10, const statuses &current)
 
static bool sparkModeCondSwitchActive (const config10 &page10, const statuses &current)
 
static bool sparkModeInputSwitchActive (const config10 &page10)
 
static bool isFixedTimingOn (const config2 &page2, const statuses &current)
 
void calculateSecondarySpark (const config2 &page2, const config10 &page10, const table3d16RpmLoad &sparkLookupTable, statuses &current)
 

Function Documentation

◆ calculateSecondaryFuel()

void calculateSecondaryFuel ( const config10 page10,
const table3d16RpmLoad veLookupTable,
statuses current 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ calculateSecondarySpark()

void calculateSecondarySpark ( const config2 page2,
const config10 page10,
const table3d16RpmLoad sparkLookupTable,
statuses current 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ constrainAdvance()

static int8_t constrainAdvance ( int16_t  advance)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fuelModeCondSwitchActive()

static bool fuelModeCondSwitchActive ( const config10 page10,
const statuses current 
)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fuelModeCondSwitchEthanolActive()

static bool fuelModeCondSwitchEthanolActive ( const config10 page10,
const statuses current 
)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fuelModeCondSwitchMapActive()

static bool fuelModeCondSwitchMapActive ( const config10 page10,
const statuses current 
)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fuelModeCondSwitchRpmActive()

static bool fuelModeCondSwitchRpmActive ( const config10 page10,
const statuses current 
)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fuelModeCondSwitchTpsActive()

static bool fuelModeCondSwitchTpsActive ( const config10 page10,
const statuses current 
)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fuelModeInputSwitchActive()

static bool fuelModeInputSwitchActive ( const config10 page10)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isFixedTimingOn()

static bool isFixedTimingOn ( const config2 page2,
const statuses current 
)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ lookupSpark2()

static int16_t lookupSpark2 ( const config10 page10,
const table3d16RpmLoad sparkLookupTable,
const statuses current 
)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ lookupVE2()

static uint8_t lookupVE2 ( const config10 page10,
const table3d16RpmLoad veLookupTable,
const statuses current 
)
inlinestatic

Looks up and returns the VE value from the secondary fuel table.

This performs largely the same operations as getVE() however the lookup is of the secondary fuel table and uses the secondary load source

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

◆ sparkModeCondSwitchActive()

static bool sparkModeCondSwitchActive ( const config10 page10,
const statuses current 
)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sparkModeCondSwitchEthanolActive()

static bool sparkModeCondSwitchEthanolActive ( const config10 page10,
const statuses current 
)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sparkModeCondSwitchMapActive()

static bool sparkModeCondSwitchMapActive ( const config10 page10,
const statuses current 
)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sparkModeCondSwitchRpmActive()

static bool sparkModeCondSwitchRpmActive ( const config10 page10,
const statuses current 
)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sparkModeCondSwitchTpsActive()

static bool sparkModeCondSwitchTpsActive ( const config10 page10,
const statuses current 
)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sparkModeInputSwitchActive()

static bool sparkModeInputSwitchActive ( const config10 page10)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function: