mirror of https://github.com/rusefi/rusefi.git
reviving tests & config
This commit is contained in:
parent
20ca6d3146
commit
3d118c98d3
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue