Fix velocity smoothing functional test

This commit is contained in:
huiyulhy
2022-08-23 21:11:35 -04:00
committed by Daniel Agar
parent 7b810bb776
commit c81efd0174
@@ -168,7 +168,7 @@ TEST_F(VelocitySmoothingTest, testConstantSetpoint)
const float dt = 0.01;
updateTrajectories(0.f, velocity_setpoints);
float t123 = _trajectories[0].getTotalTime();
int nb_steps = ceil(t123 / dt);
int nb_steps = ceilf(t123 / dt);
for (int i = 0; i < nb_steps; i++) {
updateTrajectories(dt, velocity_setpoints);