From b82fa688939e54414004140490e22dc717cb7f5c Mon Sep 17 00:00:00 2001 From: bresch Date: Mon, 16 Sep 2019 14:14:14 +0200 Subject: [PATCH] VelocitySmoothingTest - Fix typo and use "zero" instead of "null" --- src/lib/FlightTasks/tasks/Utility/VelocitySmoothingTest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/FlightTasks/tasks/Utility/VelocitySmoothingTest.cpp b/src/lib/FlightTasks/tasks/Utility/VelocitySmoothingTest.cpp index 795739704d..a81028ff88 100644 --- a/src/lib/FlightTasks/tasks/Utility/VelocitySmoothingTest.cpp +++ b/src/lib/FlightTasks/tasks/Utility/VelocitySmoothingTest.cpp @@ -132,7 +132,7 @@ TEST_F(VelocitySmoothingTest, testConstantSetpoint) Vector3f velocity_setpoints(-3.f, 0.f, -1.f); // Compute the number of steps required to reach desired value - // The updateTrajectories is fist called once to compute the total time + // The updateTrajectories is first called once to compute the total time const float dt = 0.01; updateTrajectories(0.f, velocity_setpoints); float t123 = _trajectories[0].getTotalTime(); @@ -159,7 +159,7 @@ TEST_F(VelocitySmoothingTest, testZeroSetpoint) setInitialConditions(a0, v0, x0); - // AND: Null setpoints + // AND: Zero setpoints Vector3f velocity_setpoints(0.f, 0.f, 0.f); float t = 0.f; const float dt = 0.01f; @@ -170,7 +170,7 @@ TEST_F(VelocitySmoothingTest, testZeroSetpoint) t += dt; } - // THEN: All the trajectories should still be null + // THEN: All the trajectories should still be zero for (int i = 0; i < 3; i++) { EXPECT_EQ(_trajectories[i].getCurrentJerk(), 0.f); EXPECT_EQ(_trajectories[i].getCurrentAcceleration(), 0.f);