reviving tests & config

This commit is contained in:
Andrey 2024-03-01 00:05:06 -05:00 committed by rusEFI LLC
parent 20ca6d3146
commit 3d118c98d3
2 changed files with 3 additions and 3 deletions

View File

@ -970,7 +970,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 launchRpmWindow;Starting Launch RPM window to activate (subtracts from Launch RPM);"RPM", 1, 0, 0, 8000, 0
int unusedHere12
int launchSparkSkipPercent;Spark Skip Transition Target;"%", 1, 0, 0, 100, 0
int unusedHere13
float magicNumberAvailableForDevTricks
float turbochargerFilter

View File

@ -78,7 +78,7 @@ TEST(LaunchControl, RPMCondition) {
engineConfiguration->launchRpm = 3000;
EXPECT_EQ(dut.isInsideRPMCondition(2900), LaunchCondition::NotMet);
EXPECT_EQ(dut.isInsideRPMCondition(2900), LaunchCondition::PreLaunch);
EXPECT_EQ(dut.isInsideRPMCondition(3100), LaunchCondition::Launch);
}
@ -143,7 +143,7 @@ TEST(LaunchControl, CombinedCondition) {
EXPECT_EQ(dut.isLaunchConditionMet(1200), LaunchCondition::NotMet);
Sensor::setMockValue(SensorType::Rpm, 3200);
Sensor::setMockValue(SensorType::Rpm, 3200);
EXPECT_EQ(dut.isLaunchConditionMet(3200), LaunchCondition::Launch);
Sensor::setMockValue(SensorType::VehicleSpeed, 40.0);