same gear count for everyone, also honda
only:small-can-board
This commit is contained in:
parent
9a5dc408e6
commit
ff40d113ab
|
@ -12,6 +12,8 @@ void setHondaCivicBcm() {
|
|||
engineConfiguration->gearRatio[4] = 2.2;
|
||||
engineConfiguration->gearRatio[5] = 1.8;
|
||||
|
||||
engineConfiguration->isBoostControlEnabled = true;
|
||||
|
||||
#if HW_SMALL_CAN_BOARD
|
||||
strncpy(config->luaScript, R"(
|
||||
-- this controls onCanRx rate as well!
|
||||
|
|
|
@ -118,7 +118,7 @@ int16_t rpmAcceleration;dRPM;"RPM acceleration",1, 0, 0, 5, 2
|
|||
int16_t autoscale accelerationX;@@GAUGE_NAME_ACCEL_X@@;"G",{1/@@PACK_MULT_PERCENT@@}, 0, 0, 0, 2
|
||||
int16_t autoscale accelerationY;@@GAUGE_NAME_ACCEL_Y@@;"G",{1/@@PACK_MULT_PERCENT@@}, 0, 0, 0, 2
|
||||
|
||||
uint8_t detectedGear;@@GAUGE_NAME_DETECTED_GEAR@@;"", 1, 0, 0, @@GEARS_COUNT@@, 0
|
||||
uint8_t detectedGear;@@GAUGE_NAME_DETECTED_GEAR@@;"", 1, 0, 0, @@TCU_GEAR_COUNT@@, 0
|
||||
uint8_t maxTriggerReentrant;;"", 1, 0, 0, 100, 0
|
||||
|
||||
int16_t autoscale rawLowFuelPressure;;"V",{1/@@PACK_MULT_VOLTAGE@@}, 0, 0, 5, 3
|
||||
|
|
|
@ -239,7 +239,7 @@ void startBoostPin() {
|
|||
&engine->executor,
|
||||
&enginePins.boostPin,
|
||||
engineConfiguration->boostPwmFrequency,
|
||||
0
|
||||
/*dutyCycle*/0
|
||||
);
|
||||
#endif /* EFI_UNIT_TEST */
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ void GearDetector::initGearDetector() {
|
|||
return;
|
||||
}
|
||||
|
||||
if (gearCount > GEARS_COUNT) {
|
||||
if (gearCount > TCU_GEAR_COUNT) {
|
||||
criticalError("too many gears");
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -27,5 +27,5 @@ private:
|
|||
float m_gearboxRatio = 0;
|
||||
size_t m_currentGear = 0;
|
||||
|
||||
float m_gearThresholds[GEARS_COUNT - 1];
|
||||
float m_gearThresholds[TCU_GEAR_COUNT - 1];
|
||||
};
|
||||
|
|
|
@ -158,7 +158,6 @@ struct_no_prefix engine_configuration_s
|
|||
#define IDLE_VE_SIZE 4
|
||||
|
||||
#define TCU_SOLENOID_COUNT 6
|
||||
#define TCU_GEAR_COUNT 10
|
||||
|
||||
#define RANGE_INPUT_COUNT 6
|
||||
|
||||
|
@ -1141,7 +1140,7 @@ int16_t tps2Max;Full throttle#2. tpsMax value as 10 bit ADC value. Not Voltage!\
|
|||
|
||||
#define AUX_SPEED_SENSOR_COUNT 2
|
||||
brain_input_pin_e[AUX_SPEED_SENSOR_COUNT iterate] auxSpeedSensorInputPin;
|
||||
uint8_t totalGearsCount;;"", 1, 0, 1, @@GEARS_COUNT@@, 0
|
||||
uint8_t totalGearsCount;;"", 1, 0, 1, @@TCU_GEAR_COUNT@@, 0
|
||||
|
||||
custom InjectionTimingMode 1 bits, U08, @OFFSET@, [0:1], "End of injection", "Start of injection", "Center of injection"
|
||||
InjectionTimingMode injectionTimingMode;Sets what part of injection's is controlled by the injection phase table.
|
||||
|
@ -1454,7 +1453,7 @@ tChargeMode_e tChargeMode;
|
|||
|
||||
output_pin_e[4 iterate] stepper_raw_output;
|
||||
|
||||
uint16_t[GEARS_COUNT iterate] autoscale gearRatio;;"ratio", 0.01, 0, 0, 30, 2
|
||||
uint16_t[TCU_GEAR_COUNT iterate] autoscale gearRatio;;"ratio", 0.01, 0, 0, 30, 2
|
||||
|
||||
uint16_t vvtActivationDelayMs;We need to give engine time to build oil pressure without diverting it to VVT;"ms", 1, 0, 0, 65000, 0
|
||||
|
||||
|
@ -1548,7 +1547,7 @@ pin_input_mode_e[LUA_DIGITAL_INPUT_COUNT iterate] luaDigitalInputPinModes;
|
|||
uint8_t autoscale rpmHardLimitHyst;Hysterisis: if the hard limit is 7200rpm and rpmHardLimitHyst is 200rpm, then when the ECU sees 7200rpm, fuel/ign will cut, and stay cut until 7000rpm (7200-200) is reached;"RPM", 10, 0, 0, 2500, 0
|
||||
uint16_t autoscale benchTestOffTime;Time between bench test pulses;"ms", 0.1, 0, 0, 2000, 1
|
||||
uint8_t autoscale boostCutPressureHyst;Hysterisis: if hard cut is 240kpa, and boostCutPressureHyst is 20, when the ECU sees 240kpa, fuel/ign will cut, and stay cut until 240-20=220kpa is reached;"kPa (absolute)", 0.5, 0, 0, 125, 1
|
||||
uint8_t[GEARS_COUNT] autoscale gearBasedOpenLoopBoostAdder;Boost duty cycle added by gear;"%", 0.5, 0, 0, 100, 1
|
||||
uint8_t[TCU_GEAR_COUNT] autoscale gearBasedOpenLoopBoostAdder;Boost duty cycle added by gear;"%", 0.5, 0, 0, 100, 1
|
||||
|
||||
uint32_t benchTestCount;How many test bench pulses do you want;"", 1, 0, 0, 10000000, 0
|
||||
uint8_t autoscale iacByTpsHoldTime;How long initial IAC adder is held before starting to decay.;"seconds", 0.1, 0, 0, 25, 1
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#define PACK_MULT_FUEL_FLOW 200
|
||||
#define PACK_MULT_VSS 100
|
||||
|
||||
#define GEARS_COUNT 8
|
||||
#define TCU_GEAR_COUNT 10
|
||||
#define EGT_CHANNEL_COUNT 8
|
||||
|
||||
#define MAX_CYLINDER_COUNT 12
|
||||
|
|
|
@ -1551,7 +1551,7 @@ gaugeCategory = Sensors - Raw
|
|||
gaugeCategory = Transmission
|
||||
desiredGearGauge = tcuDesiredGear, @@GAUGE_NAME_DESIRED_GEAR@@, "gear", -1, 10, -1, -1, 10, 10, 0, 0
|
||||
currentGearGauge = tcuCurrentGear, @@GAUGE_NAME_CURRENT_GEAR@@, "gear", -1, 10, -1, -1, 10, 10, 0, 0
|
||||
detectedGearGauge = detectedGear, @@GAUGE_NAME_DETECTED_GEAR@@, "gear", 0, @@GEARS_COUNT@@, 0, 0, @@GEARS_COUNT@@, @@GEARS_COUNT@@, 0, 0
|
||||
detectedGearGauge = detectedGear, @@GAUGE_NAME_DETECTED_GEAR@@, "gear", 0, @@TCU_GEAR_COUNT@@, 0, 0, @@TCU_GEAR_COUNT@@, @@TCU_GEAR_COUNT@@, 0, 0
|
||||
speedToRpmRatioGauge = speedToRpmRatio, @@GAUGE_NAME_GEAR_RATIO@@, "", 0, 100, 0, 0, 100, 100, 4, 4
|
||||
ISSGauge = ISSValue, @@GAUGE_NAME_ISS@@, "RPM", 0, {rpmHardLimit + 2000}, 200, {cranking_rpm}, {rpmHardLimit - 500}, {rpmHardLimit}, 0, 0
|
||||
tcRatioGauge = tcRatio, @@GAUGE_NAME_TC_RATIO@@, "", 0, 100, 0, 0, 100, 100, 4, 4
|
||||
|
|
Loading…
Reference in New Issue