diff --git a/firmware/controllers/algo/launch_control.cpp b/firmware/controllers/algo/launch_control.cpp index b450247c1c..12bcdbc1e0 100644 --- a/firmware/controllers/algo/launch_control.cpp +++ b/firmware/controllers/algo/launch_control.cpp @@ -44,8 +44,8 @@ bool LaunchControlBase::isInsideSwitchCondition() { } /** - * Returns True in case Vehicle speed is less then trashold. - * This condiiion would only return true based on speed if DisablebySpeed is true + * Returns True in case Vehicle speed is less then threshold. + * This condition would only return true based on speed if DisablebySpeed is true * The condition logic is written in that way, that if we do not use disable by speed * then we have to return true, and trust that we would disable by other condition! */ @@ -56,7 +56,7 @@ bool LaunchControlBase::isInsideSpeedCondition() const { } /** - * Returns false if TPS is invalid or TPS > preset trashold + * Returns false if TPS is invalid or TPS > preset threshold */ bool LaunchControlBase::isInsideTpsCondition() const { auto tps = Sensor::get(SensorType::DriverThrottleIntent); diff --git a/unit_tests/tests/test_dynoview.cpp b/unit_tests/tests/test_dynoview.cpp index b14024826b..6ed410ca56 100644 --- a/unit_tests/tests/test_dynoview.cpp +++ b/unit_tests/tests/test_dynoview.cpp @@ -22,7 +22,7 @@ TEST(DynoView, VSS_T1) { DynoView dut; dut.inject(); - // Test Speed trashold + // Test Speed threshold engineConfiguration->vehicleWeight = 900; eth.moveTimeForwardMs(50); @@ -42,7 +42,7 @@ TEST(DynoView, algo) { DynoView dut; dut.inject(); - // Test Speed trashold + // Test Speed threshold engineConfiguration->vehicleWeight = 900; //to capture vss @@ -67,7 +67,7 @@ TEST(DynoView, VSS_fast) { DynoView dut; dut.inject(); - // Test Speed trashold + // Test Speed threshold engineConfiguration->vehicleWeight = 900; //kg engine->rpmCalculator.mockRpm = 2200; eth.moveTimeForwardMs(50); @@ -91,7 +91,7 @@ TEST(DynoView, VSS_Torque) { DynoView dut; dut.inject(); - // Test Speed trashold + // Test Speed threshold engineConfiguration->vehicleWeight = 900; //kg engine->rpmCalculator.mockRpm = 2200; eth.moveTimeForwardMs(50); diff --git a/unit_tests/tests/test_launch.cpp b/unit_tests/tests/test_launch.cpp index 049c41a005..8a1afff502 100644 --- a/unit_tests/tests/test_launch.cpp +++ b/unit_tests/tests/test_launch.cpp @@ -30,7 +30,7 @@ TEST(LaunchControl, VSSCondition) { LaunchControlBase dut; dut.inject(); - // Test Speed trashold + // Test Speed threshold engineConfiguration->launchActivationMode = ALWAYS_ACTIVE_LAUNCH; engineConfiguration->launchSpeedThreshold = 30;