rusefi/firmware/controllers/algo/defaults/defaults.h

38 lines
1.4 KiB
C
Raw Normal View History

2022-10-25 18:54:26 -07:00
/**
* file defaults.h
*/
2024-08-14 08:34:34 -07:00
#pragma once
2022-10-25 18:54:26 -07:00
void setLeftRightBanksNeedBetterName();
void setDefaultBaseEngine();
void setDefaultFuel();
void setDefaultIgnition();
void setDefaultCranking();
2023-06-10 09:46:39 -07:00
void setGDIFueling();
2024-02-25 21:27:43 -08:00
void setGdiWallWetting();
2023-07-12 08:34:25 -07:00
void setInline4();
2024-08-14 08:34:34 -07:00
void setupTLE9201(Gpio controlPin, Gpio direction, Gpio disable, int dcIndex = 0);
2024-08-22 16:11:10 -07:00
void setupTLE9201IncludingStepper(Gpio controlPin, Gpio direction, Gpio disable, int dcIndex = 0);
2022-11-04 09:37:28 -07:00
#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
2022-10-29 20:04:24 -07:00
void setPPSInputs(adc_channel_e pps1, adc_channel_e pps2);
2022-10-29 20:55:14 -07:00
void setPPSCalibration(float primaryUp, float primaryDown, float secondaryUp, float secondaryDown);
2022-11-04 09:37:28 -07:00
void setTPS1Inputs(adc_channel_e tps1, adc_channel_e tps2);
2023-03-03 07:35:06 -08:00
// legacy since channel TPS still exists
void setTPS1Calibration(uint16_t tpsMin, uint16_t tpsMax);
// Most ETB require redundant dual channel TPS
2022-11-04 10:27:40 -07:00
void setTPS1Calibration(uint16_t tpsMin, uint16_t tpsMax, uint16_t tps1SecondaryMin, uint16_t tps1SecondaryMax);
2023-11-07 22:15:33 -08:00
void setCustomMap(float lowValue, float mapLowValueVoltage, float highValue, float mapHighValueVoltage);
2023-10-30 19:13:29 -07:00
void setEtbPID(float p, float i, float d);