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();
|
|
|
|
|
2017-10-24 05:30:51 -07:00
|
|
|
static inline byte correctionsFuel() __attribute__((always_inline));
|
|
|
|
static inline byte correctionWUE() __attribute__((always_inline)); //Warmup enrichment
|
|
|
|
static inline byte correctionCranking() __attribute__((always_inline)); //Cranking enrichment
|
|
|
|
static inline byte correctionASE() __attribute__((always_inline)); //After Start Enrichment
|
|
|
|
static inline byte correctionAccel() __attribute__((always_inline)); //Acceleration Enrichment
|
|
|
|
static inline byte correctionFloodClear() __attribute__((always_inline)); //Check for flood clear on cranking
|
|
|
|
static inline byte correctionAFRClosedLoop() __attribute__((always_inline)); //Closed loop AFR adjustment
|
|
|
|
static inline byte correctionFlex() __attribute__((always_inline)); //Flex fuel adjustment
|
|
|
|
static inline byte correctionBatVoltage() __attribute__((always_inline)); //Battery voltage correction
|
|
|
|
static inline byte correctionIATDensity() __attribute__((always_inline)); //Inlet temp density correction
|
|
|
|
static inline byte correctionLaunch() __attribute__((always_inline)); //Launch control correction
|
|
|
|
static inline bool correctionDFCO() __attribute__((always_inline)); //Decelleration fuel cutoff
|
2016-12-11 03:51:04 -08:00
|
|
|
|
2017-05-09 00:29:55 -07:00
|
|
|
int8_t correctionsIgn(int8_t advance);
|
|
|
|
static inline int8_t correctionFixedTiming(int8_t);
|
|
|
|
static inline int8_t correctionCrankingFixedTiming(int8_t);
|
|
|
|
static inline int8_t correctionFlexTiming(int8_t);
|
|
|
|
static inline int8_t correctionIATretard(int8_t);
|
|
|
|
static inline int8_t correctionSoftRevLimit(int8_t);
|
|
|
|
static inline int8_t correctionSoftLaunch(int8_t);
|
|
|
|
static inline int8_t correctionSoftFlatShift(int8_t);
|
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
|
|
|
|
2017-10-31 22:10:06 -07:00
|
|
|
uint16_t AFRnextCycle;
|
|
|
|
|
2015-02-14 05:11:43 -08:00
|
|
|
#endif // CORRECTIONS_H
|