Speeduino
Loading...
Searching...
No Matches
corrections.h
Go to the documentation of this file.
1/*
2All functions in the gamma file return
3
4*/
5#ifndef CORRECTIONS_H
6#define CORRECTIONS_H
7
8#define IGN_IDLE_THRESHOLD 200 //RPM threshold (below CL idle target) for when ign based idle control will engage
9
10void initialiseCorrections(void);
13byte correctionWUE(void); //Warmup enrichment
14uint16_t correctionCranking(void); //Cranking enrichment
15byte correctionASE(void); //After Start Enrichment
16uint16_t correctionAccel(void); //Acceleration Enrichment
17byte correctionFloodClear(void); //Check for flood clear on cranking
18byte correctionAFRClosedLoop(void); //Closed loop AFR adjustment
19byte correctionFlex(void); //Flex fuel adjustment
20byte correctionFuelTemp(void); //Fuel temp correction
21byte correctionBatVoltage(void); //Battery voltage correction
22byte correctionIATDensity(void); //Inlet temp density correction
23byte correctionBaro(void); //Barometric pressure correction
24byte correctionLaunch(void); //Launch control correction
25byte correctionDFCOfuel(void); //DFCO taper correction
26bool correctionDFCO(void); //Decelleration fuel cutoff
27
43
45
46extern byte activateMAPDOT; //The mapDOT value seen when the MAE was activated.
47extern byte activateTPSDOT; //The tpsDOT value seen when the MAE was activated.
48
50extern uint8_t aseTaper;
51extern uint8_t dfcoDelay;
54extern uint8_t dfcoTaper;
55
56#endif // CORRECTIONS_H
byte correctionLaunch(void)
Definition corrections.cpp:511
byte correctionBaro(void)
Definition corrections.cpp:500
uint8_t calculateAfrTarget(table3d16RpmLoad &afrLookUpTable, const statuses &current, const config2 &page2, const config6 &page6)
Definition corrections.cpp:600
int8_t correctionSoftLaunch(int8_t advance)
Definition corrections.cpp:880
uint16_t correctionsDwell(uint16_t dwell)
Definition corrections.cpp:1062
uint8_t dfcoTaper
Definition corrections.cpp:54
int8_t correctionFixedTiming(int8_t advance)
Definition corrections.cpp:725
uint16_t AFRnextCycle
Definition corrections.cpp:45
uint8_t idleAdvTaper
Definition corrections.cpp:52
int8_t correctionDFCOignition(int8_t advance)
Definition corrections.cpp:1045
int8_t correctionIATretard(int8_t advance)
Definition corrections.cpp:770
int8_t correctionKnockTiming(int8_t advance)
Definition corrections.cpp:956
uint8_t crankingEnrichTaper
Definition corrections.cpp:53
byte correctionFlex(void)
Definition corrections.cpp:572
void initialiseCorrections(void)
Definition corrections.cpp:58
byte correctionDFCOfuel(void)
Definition corrections.cpp:521
byte correctionFuelTemp(void)
Definition corrections.cpp:586
uint16_t correctionsFuel(void)
Definition corrections.cpp:85
int8_t correctionSoftRevLimit(int8_t advance)
Definition corrections.cpp:834
int8_t correctionCrankingFixedTiming(int8_t advance)
Definition corrections.cpp:734
uint16_t correctionAccel(void)
Definition corrections.cpp:262
byte correctionIATDensity(void)
Definition corrections.cpp:489
byte activateTPSDOT
Definition corrections.cpp:42
uint16_t correctionCranking(void)
Definition corrections.cpp:173
int8_t correctionKnock(int8_t advance)
int8_t correctionCLTadvance(int8_t advance)
Definition corrections.cpp:778
byte activateMAPDOT
Definition corrections.cpp:41
byte correctionASE(void)
Definition corrections.cpp:204
int8_t correctionIdleAdvance(int8_t advance)
Definition corrections.cpp:789
int8_t correctionSoftFlatShift(int8_t advance)
Definition corrections.cpp:905
uint8_t dfcoDelay
Definition corrections.cpp:51
int8_t correctionsIgn(int8_t advance)
Definition corrections.cpp:700
int8_t correctionNitrous(int8_t advance)
Definition corrections.cpp:859
bool correctionDFCO(void)
Definition corrections.cpp:543
int8_t correctionWMITiming(int8_t advance)
Definition corrections.cpp:757
byte correctionFloodClear(void)
Definition corrections.cpp:461
uint8_t aseTaper
Definition corrections.cpp:50
int8_t correctionFlexTiming(int8_t advance)
Definition corrections.cpp:745
byte correctionAFRClosedLoop(void)
Definition corrections.cpp:630
byte correctionWUE(void)
Definition corrections.cpp:150
byte correctionBatVoltage(void)
Definition corrections.cpp:479
static uint32_t rshift(uint32_t a)
Bitwise right shift - generic, unoptimized, case.
Definition bit_shifts.h:349
page_iterator_t advance(const page_iterator_t &it)
Definition pages.cpp:450
Definition globals.h:730
Definition globals.h:1006
Definition globals.h:575