only: removing totally dead launchFuelAdded

This commit is contained in:
rusefillc 2024-02-29 22:21:05 -05:00
parent 9cb721be8f
commit 57ad92fc1d
3 changed files with 6 additions and 8 deletions

View File

@ -951,7 +951,7 @@ bit verboseCan2,"Print all","Do not print";Print incoming and outgoing second bu
int launchSpeedThreshold;Launch disabled above this speed if setting is above zero;"Kph", 1, 0, 0, 300, 0
int launchTimingRpmRange;Range from Launch RPM for Timing Retard to activate;"RPM", 1, 0, 0, 8000, 0
int launchFuelAdded;Extra Fuel Added;"%", 1, 0, 0, 100, 0
int launchSparkSkipPercent;Spark Skip Transition Target;"%", 1, 0, 0, 100, 0
int launchBoostDuty;Duty Cycle for the Boost Solenoid;"%", 1, 0, 0, 100, 0
int hardCutRpmRange;Range from Launch RPM to activate Hard Cut;"RPM", 1, 0, 0, 3000, 0
float turbochargerFilter

View File

@ -4660,8 +4660,6 @@ dialog = tcuControls, "Transmission Settings"
field = "Launch RPM", launchRpm, {launchControlEnabled == 1}
field = "Ignition Retard Adder", launchTimingRpmRange, {launchControlEnabled == 1 && enableLaunchRetard == 1}
field = "Hard Cut RPM Adder", hardCutRpmRange, {launchControlEnabled == 1}
;field = "Extra Fuel", launchFuelAdded, {launchControlEnabled == 1}
;field = "Boost Solenoid Duty", launchBoostDuty, {launchControlEnabled == 1}
field = "TPS Threshold", launchTpsThreshold, {launchControlEnabled == 1}
field = "Ignition Retard enable", enableLaunchRetard, {launchControlEnabled == 1}
field = "Ignition Retard", launchTimingRetard, {launchControlEnabled == 1 && enableLaunchRetard == 1}

View File

@ -16,7 +16,7 @@ TEST(LaunchControl, TpsCondition) {
// Should return false when throttle is closed
Sensor::setMockValue(SensorType::DriverThrottleIntent, 5.0f);
EXPECT_FALSE(dut.isInsideTpsCondition());
// Should return true when throttle is opened past the threshold
Sensor::setMockValue(SensorType::DriverThrottleIntent, 20.0f);
EXPECT_TRUE(dut.isInsideTpsCondition());
@ -137,7 +137,7 @@ TEST(LaunchControl, CombinedCondition) {
engineConfiguration->launchTpsThreshold = 10;
//valid TPS
Sensor::setMockValue(SensorType::DriverThrottleIntent, 20.0f);
Sensor::setMockValue(SensorType::VehicleSpeed, 10.0);
Sensor::setMockValue(SensorType::Rpm, 1200);
@ -159,7 +159,7 @@ static void setDefaultLaunchParameters() {
engineConfiguration->launchFuelCutEnable = false;
engineConfiguration->hardCutRpmRange = 500; //Rpm above Launch triggered +(if retard enabled) launchTimingRpmRange to hard cut
engineConfiguration->launchSpeedThreshold = 10; //maximum speed allowed before disable launch
engineConfiguration->launchFuelAdded = 10; // Extra fuel in % when launch are triggered
engineConfiguration->launchFuelAdderPercent = 10; // Extra fuel in % when launch are triggered
engineConfiguration->launchBoostDuty = 70; // boost valve duty cycle at launch
engineConfiguration->launchActivateDelay = 3; // Delay in seconds for launch to kick in
// engineConfiguration->enableLaunchRetard = true;
@ -183,7 +183,7 @@ TEST(LaunchControl, CompleteRun) {
engineConfiguration->launchControlEnabled = true;
//valid TPS
Sensor::setMockValue(SensorType::DriverThrottleIntent, 20.0f);
Sensor::setMockValue(SensorType::VehicleSpeed, 10.0);
Sensor::setMockValue(SensorType::Rpm, 1200);
@ -203,7 +203,7 @@ TEST(LaunchControl, CompleteRun) {
//we have a 3 seconds delay to actually enable it!
eth.moveTimeForwardAndInvokeEventsSec(1);
engine->launchController.update();
EXPECT_FALSE(engine->launchController.isLaunchSparkRpmRetardCondition());
EXPECT_FALSE(engine->launchController.isLaunchFuelRpmRetardCondition());