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"
#include "globals.h"
#include "units.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 isSecondarySwitchActive (uint8_t variable, uint16_t threshold, 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 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 
)

◆ calculateSecondarySpark()

void calculateSecondarySpark ( const config2 &  page2,
const config10 &  page10,
const table3d16RpmLoad &  sparkLookupTable,
statuses &  current 
)

◆ constrainAdvance()

static int8_t constrainAdvance ( int16_t  advance)
inlinestatic

◆ fuelModeCondSwitchActive()

static bool fuelModeCondSwitchActive ( const config10 &  page10,
const statuses &  current 
)
inlinestatic

◆ fuelModeInputSwitchActive()

static bool fuelModeInputSwitchActive ( const config10 &  page10)
inlinestatic

◆ isFixedTimingOn()

static bool isFixedTimingOn ( const config2 &  page2,
const statuses &  current 
)
inlinestatic

◆ isSecondarySwitchActive()

static bool isSecondarySwitchActive ( uint8_t  variable,
uint16_t  threshold,
const statuses &  current 
)
inlinestatic

◆ lookupSpark2()

static int16_t lookupSpark2 ( const config10 &  page10,
const table3d16RpmLoad &  sparkLookupTable,
const statuses &  current 
)
inlinestatic

◆ 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

◆ sparkModeCondSwitchActive()

static bool sparkModeCondSwitchActive ( const config10 &  page10,
const statuses &  current 
)
inlinestatic

◆ sparkModeInputSwitchActive()

static bool sparkModeInputSwitchActive ( const config10 &  page10)
inlinestatic