8#include <rusefi/manifest.h>
13#if EFI_ALTERNATOR_CONTROL
24#if HPFP_LOBE_PROFILE_SIZE == 16
25static const float hardCodedHpfpLobeProfileAnglesForThreeLobes[16] = {0.0, 7.5, 16.5, 24.0,
2632.0 , 40.0, 48.0, 56.0,
2764.0 , 72.0, 80.0, 88.0,
2896.0 , 103.5, 112.5, 120.0
31 float multiplier = 3.0 / lobes;
32 for (
size_t i = 0; i < HPFP_LOBE_PROFILE_SIZE; i++) {
45#if EFI_PROD_CODE || EFI_SIMULATOR
169#if MAX_CYLINDER_COUNT >= 4
378#if EFI_ALTERNATOR_CONTROL
406#ifdef KNOCK_SPECTROGRAM
447void setTPS1Calibration(uint16_t tpsMin, uint16_t tpsMax, uint16_t tps1SecondaryMin, uint16_t tps1SecondaryMax) {
455void setCustomMap(
float lowValue,
float mapLowValueVoltage,
float highValue,
float mapHighValueVoltage) {
463void setPPSCalibration(
float primaryUp,
float primaryDown,
float secondaryUp,
float secondaryDown) {
482#if HW_PROTEUS && EFI_PROD_CODE
511 int stepperIndexWeirdness = 1 - dcIndex;
type_list< Mockable< InjectorModelPrimary >, Mockable< InjectorModelSecondary >,#if EFI_IDLE_CONTROL Mockable< IdleController >,#endif TriggerScheduler,#if EFI_HPFP &&EFI_ENGINE_CONTROL Mockable< HpfpController >,#endif #if EFI_ENGINE_CONTROL Mockable< ThrottleModel >,#endif #if EFI_ALTERNATOR_CONTROL AlternatorController,#endif MainRelayController, Mockable< IgnitionController >, Mockable< AcController >, PrimeController, DfcoController,#if EFI_HD_ACR HarleyAcr,#endif Mockable< WallFuelController >, KnockController, SensorChecker,#if EFI_ENGINE_CONTROL Mockable< LimpManager >,#endif #if EFI_VVT_PID VvtController1, VvtController2, VvtController3, VvtController4,#endif #if EFI_BOOST_CONTROL BoostController,#endif TpsAccelEnrichment,#if EFI_LAUNCH_CONTROL NitrousController,#endif #if EFI_LTFT_CONTROL LongTermFuelTrim,#endif ShortTermFuelTrim,#include "modules_list_generated.h" EngineModule > engineModules
static bool isTuningDetectorUndefined()
static void setUserEnteredTuningDetector(uint8_t tuningDetector)
void setHpfpLobeProfileAngle(int lobes)
void defaultsOrFixOnBurn()
void setTPS1Calibration(uint16_t tpsMin, uint16_t tpsMax)
void setCustomMap(float lowValue, float mapLowValueVoltage, float highValue, float mapHighValueVoltage)
static void mc33810defaults()
void setPPSInputs(adc_channel_e pps1, adc_channel_e pps2)
static void setDefaultAlternatorParameters()
static void setGdiDefaults()
void setTPS1Inputs(adc_channel_e tps1, adc_channel_e tps2)
void setEtbPID(float p, float i, float d)
void setPPSCalibration(float primaryUp, float primaryDown, float secondaryUp, float secondaryDown)
void setupTLE9201IncludingStepper(Gpio controlPin, Gpio direction, Gpio disable, int dcIndex)
static void setDefaultHPFP()
void setupTLE9201(Gpio controlPin, Gpio direction, Gpio disable, int dcIndex)
void setLeftRightBanksNeedBetterName()
void setDefaultBaseEngine()
static EngineAccessor engine
static constexpr persistent_config_s * config
static constexpr engine_configuration_s * engineConfiguration
static RedundantPair tps2(tps2p, tps2s, SensorType::Tps2)
constexpr float FUEL_LEVEL_HIGH_THRESHOLD_VOLTAGE
constexpr float FUEL_LEVEL_UPDATE_PERIOD_SEC
constexpr float FUEL_LEVEL_LOW_THRESHOLD_VOLTAGE
constexpr float FUEL_LEVEL_AVERAGING_ALPHA
static void disable(const char *param)
air_pressure_sensor_config_s sensor
air_pressure_sensor_type_e type
bool enableKnockSpectrogramFilter
float mapHighValueVoltage
InjectionTimingMode injectionTimingMode
adc_channel_e tps1_1AdcChannel
angle_t globalTriggerAngleOffset
scaled_channel< uint8_t, 10, 1 > knockRetardAggression
float fuelReferencePressure
float knockSpectrumSensitivity
float fuelLevelAveragingAlpha
scaled_channel< uint8_t, 5, 1 > rpmSoftLimitTimingRetard
bool enableKnockSpectrogram
engine_load_mode_e fuelAlgorithm
uint8_t alsMinTimeBetween
int8_t torqueReductionActivationTemperature
scaled_channel< uint8_t, 1, 1 > knockFuelTrim
scaled_channel< uint16_t, 100000, 1 > hpfpPidI
float tpsAccelFractionDivisor
uint8_t tractionControlSpeedBins[TRACTION_CONTROL_ETB_DROP_SPEED_SIZE]
scaled_channel< uint16_t, 1000, 1 > tachPulsePerRev
bool enableExtendedCanBroadcast
ignition_mode_e ignitionMode
float throttlePedalUpVoltage
uint16_t etbRevLimitRange
bool tachPulseDurationAsDutyCycle
int16_t alternator_iTermMin
adc_channel_e throttlePedalPositionSecondAdcChannel
tps_limit_t tps1SecondaryMax
float tachPulseDuractionMs
scaled_channel< uint8_t, 1, 10 > rpmHardLimitHyst
cranking_parameters_s cranking
injector_pressure_type_e injectorPressureType
int16_t startUpFuelPumpDuration
float fuelLevelLowThresholdVoltage
linear_sensor_s acPressure
output_pin_e vvtPins[CAM_INPUTS_COUNT]
uint8_t camDecoder2jzPosition
mc33810maxDwellTimer_e mc33810maxDwellTimer
float wastegatePositionOpenedVoltage
scaled_channel< uint16_t, 100, 1 > benchTestOnTime
uint8_t camDecoder2jzPrecision
float idleStepperReactionTime
scaled_channel< uint16_t, 1000, 1 > hpfpPidP
float fuelLevelHighThresholdVoltage
dc_io stepperDcIo[DC_PER_STEPPER]
bool isPhaseSyncRequiredForIgnition
scaled_channel< uint8_t, 4, 1 > mc33810Nomi
vvt_mode_e vvtMode[CAMS_PER_BANK]
scaled_channel< uint8_t, 100, 1 > primingDelay
uint8_t etbMaximumPosition
uint8_t cylinderBankSelect[MAX_CYLINDER_COUNT]
adc_channel_e tps1_2AdcChannel
scaled_channel< uint8_t, 1, 1 > knockSuppressMinTps
float throttlePedalSecondaryWOTVoltage
scaled_channel< uint16_t, 100, 1 > tractionControlSlipBins[TRACTION_CONTROL_ETB_DROP_SLIP_SIZE]
float throttlePedalSecondaryUpVoltage
scaled_channel< uint16_t, 10, 1 > benchTestOffTime
int16_t alternator_iTermMax
float fuelLevelUpdatePeriodSec
injection_mode_e crankingInjectionMode
bool stepperForceParkingEveryRestart
float vvtOffsets[CAM_INPUTS_COUNT]
uint8_t hpfpActivationAngle
float throttlePedalWOTVoltage
bool externalRusEfiGdiModule
uint8_t tcuInputSpeedSensorTeeth
injector_compensation_mode_e injectorCompensationMode
scaled_channel< uint8_t, 10, 1 > idleReturnTargetRampDuration
scaled_channel< uint8_t, 10, 1 > knockRetardReapplyRate
scaled_channel< uint16_t, 1000, 1 > hpfpPumpVolume
firing_order_e firingOrder
linear_sensor_s lowPressureFuel
uint8_t vssFilterReciprocal
uint8_t issFilterReciprocal
scaled_channel< uint8_t, 10, 1 > minimumOilPressureTimeout
injection_mode_e injectionMode
float auxSpeed1Multiplier
bool boardUseCanTerminator
uint16_t mafFilterParameter
tps_limit_t tps1SecondaryMin
int idleStepperTotalSteps
bool watchOutForLinearTime
scaled_channel< uint8_t, 10, 1 > etbMinimumPosition
scaled_channel< int8_t, 1, 10 > acLowRpmLimit
float magicNumberAvailableForDevTricks
scaled_channel< uint8_t, 1, 10 > rpmSoftLimitWindowSize
scaled_channel< uint8_t, 10, 1 > etbSplit
bool knockDetectionUseDoubleFrequency
adc_channel_e throttlePedalPositionAdcChannel
scaled_channel< int16_t, 100, 1 > battLagCorrTable[VBAT_INJECTOR_CURVE_PRESSURE_SIZE][VBAT_INJECTOR_CURVE_SIZE]
scaled_channel< uint16_t, 10, 1 > injectorFlowLinearizationPressureBins[FLOW_LINEARIZATION_PRESSURE_SIZE]
scaled_channel< uint8_t, 1, 100 > maximumOilPressureBins[4]
scaled_channel< float, 1, 1 > dynoCarFrontalAreaM2
scaled_channel< int8_t, 1, 1 > dynoSaeTemperatureC
uint16_t torqueLoadBins[TORQUE_CURVE_SIZE]
scaled_channel< uint16_t, 10, 1 > hpfpFuelMassCompensationFuelPressure[HPFP_FUEL_MASS_COMPENSATION_SIZE]
uint8_t scriptTable4[SCRIPT_TABLE_8][TABLE_4_RPM]
int16_t injectionPhase[INJ_PHASE_LOAD_COUNT][INJ_PHASE_RPM_COUNT]
scaled_channel< float, 1, 1 > dynoSaeBaro
scaled_channel< float, 1, 1 > dynoCarGearPrimaryReduction
uint8_t tcuSolenoidTable[TCU_SOLENOID_COUNT][TCU_GEAR_COUNT]
scaled_channel< int8_t, 1, 1 > dynoCarWheelAspectRatio
scaled_channel< uint8_t, 1, 50 > hpfpTargetRpmBins[HPFP_TARGET_SIZE]
scaled_channel< int16_t, 1, 1 > dynoCarWheelTireWidthMm
scaled_channel< float, 1, 1 > dynoCarGearFinalDrive
uint16_t torqueRpmBins[TORQUE_CURVE_RPM_SIZE]
scaled_channel< int16_t, 1, 1 > cltRevLimitRpmBins[CLT_LIMITER_CURVE_SIZE]
scaled_channel< int8_t, 1, 1 > dynoCarWheelDiaInch
uint16_t hpfpTarget[HPFP_TARGET_SIZE][HPFP_TARGET_SIZE]
scaled_channel< float, 1, 1 > dynoCarGearRatio
scaled_channel< uint16_t, 100, 1 > injectorFlowLinearizationFuelMassBins[FLOW_LINEARIZATION_MASS_SIZE]
scaled_channel< int16_t, 10, 1 > alternatorVoltageTargetTable[ALTERNATOR_VOLTAGE_TARGET_SIZE][ALTERNATOR_VOLTAGE_TARGET_SIZE]
scaled_channel< float, 1, 1 > dynoCarCoeffOfDrag
scaled_channel< int16_t, 1, 1 > dynoCarCarMassKg
scaled_channel< uint16_t, 100, 1 > hpfpFuelMassCompensationFuelMass[HPFP_FUEL_MASS_COMPENSATION_SIZE]
scaled_channel< uint16_t, 10, 1 > hpfpTargetLoadBins[HPFP_TARGET_SIZE]
scaled_channel< uint8_t, 1, 100 > minimumOilPressureBins[8]
scaled_channel< uint8_t, 2, 1 > hpfpLobeProfileAngle[HPFP_LOBE_PROFILE_SIZE]
scaled_channel< uint8_t, 1, 1 > dynoSaeRelativeHumidity
scaled_channel< uint16_t, 100, 1 > hpfpFuelMassCompensation[HPFP_FUEL_MASS_COMPENSATION_SIZE][HPFP_FUEL_MASS_COMPENSATION_SIZE]
scaled_channel< int16_t, 1, 1 > dynoCarCargoMassKg
scaled_channel< uint8_t, 1, 1 > dynoRpmStep
constexpr void setTable(TElement(&dest)[N][M], const VElement value)
void setRpmTableBin(TValue(&array)[TSize])
void setLinearCurve(TValue(&array)[TSize], float from, float to, float precision=0.01f)
void setDefaultVrThresholds()