38 lines
1.4 KiB
C
38 lines
1.4 KiB
C
/**
|
|
* file defaults.h
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
void setLeftRightBanksNeedBetterName();
|
|
void setDefaultBaseEngine();
|
|
void setDefaultFuel();
|
|
void setDefaultIgnition();
|
|
void setDefaultCranking();
|
|
void setGDIFueling();
|
|
void setGdiWallWetting();
|
|
void setInline4();
|
|
void setupTLE9201(Gpio controlPin, Gpio direction, Gpio disable, int dcIndex = 0);
|
|
void setupTLE9201IncludingStepper(Gpio controlPin, Gpio direction, Gpio disable, int dcIndex = 0);
|
|
|
|
#define DEFAULT_CRANKING_DWELL_MS 6
|
|
#define DEFAULT_CRANKING_ANGLE 6
|
|
|
|
// most of rusEFI installations are still port injected, for GDI see 'setGDIFueling'
|
|
// -400 will close the injector just before TDC at the end of the exhaust stroke,
|
|
// around the time the intake valve opens.
|
|
#define PORT_INJECTION_OFFSET -400.0f
|
|
|
|
void setPPSInputs(adc_channel_e pps1, adc_channel_e pps2);
|
|
void setPPSCalibration(float primaryUp, float primaryDown, float secondaryUp, float secondaryDown);
|
|
|
|
void setTPS1Inputs(adc_channel_e tps1, adc_channel_e tps2);
|
|
// legacy since channel TPS still exists
|
|
void setTPS1Calibration(uint16_t tpsMin, uint16_t tpsMax);
|
|
// Most ETB require redundant dual channel TPS
|
|
void setTPS1Calibration(uint16_t tpsMin, uint16_t tpsMax, uint16_t tps1SecondaryMin, uint16_t tps1SecondaryMax);
|
|
|
|
void setCustomMap(float lowValue, float mapLowValueVoltage, float highValue, float mapHighValueVoltage);
|
|
|
|
void setEtbPID(float p, float i, float d);
|