2014-01-07 00:02:00 -08:00
|
|
|
/*
|
2017-04-21 00:29:09 -07:00
|
|
|
All functions in the gamma file return
|
2014-01-07 00:02:00 -08:00
|
|
|
|
|
|
|
*/
|
2015-02-14 05:11:43 -08:00
|
|
|
#ifndef CORRECTIONS_H
|
|
|
|
#define CORRECTIONS_H
|
|
|
|
|
2016-10-25 07:04:37 -07:00
|
|
|
void initialiseCorrections();
|
|
|
|
|
2016-12-11 03:51:04 -08:00
|
|
|
byte correctionsFuel();
|
|
|
|
static inline byte correctionWUE(); //Warmup enrichment
|
2017-01-17 22:37:55 -08:00
|
|
|
static inline byte correctionCranking(); //Cranking enrichment
|
2016-12-11 03:51:04 -08:00
|
|
|
static inline byte correctionASE(); //After Start Enrichment
|
|
|
|
static inline byte correctionAccel(); //Acceleration Enrichment
|
2017-01-10 23:30:46 -08:00
|
|
|
static inline byte correctionFloodClear(); //Check for flood clear on cranking
|
|
|
|
static inline byte correctionAFRClosedLoop(); //Closed loop AFR adjustment
|
|
|
|
static inline byte correctionFlex(); //Flex fuel adjustment
|
|
|
|
static inline byte correctionBatVoltage(); //Battery voltage correction
|
|
|
|
static inline byte correctionIATDensity(); //Inlet temp density correction
|
|
|
|
static inline byte correctionLaunch(); //Launch control correction
|
|
|
|
static inline bool correctionDFCO(); //Decelleration fuel cutoff
|
2016-12-11 03:51:04 -08:00
|
|
|
|
2017-04-21 00:29:09 -07:00
|
|
|
byte correctionsIgn(byte advance);
|
|
|
|
static inline byte correctionFixedTiming(byte);
|
|
|
|
static inline byte correctionCrankingFixedTiming(byte);
|
|
|
|
static inline byte correctionFlexTiming(byte);
|
|
|
|
static inline byte correctionIATretard(byte);
|
|
|
|
static inline byte correctionSoftRevLimit(byte);
|
|
|
|
static inline byte correctionSoftLaunch(byte);
|
|
|
|
static inline byte correctionSoftFlatShift(byte);
|
2016-12-11 03:51:04 -08:00
|
|
|
|
2017-04-21 00:29:09 -07:00
|
|
|
uint16_t correctionsDwell(uint16_t dwell);
|
2015-02-14 05:11:43 -08:00
|
|
|
|
|
|
|
#endif // CORRECTIONS_H
|