Fix velocity smoothing functional test

This commit is contained in:
huiyulhy 2022-08-22 11:42:05 -07:00 committed by Daniel Agar
parent 7b810bb776
commit c81efd0174
1 changed files with 1 additions and 1 deletions

View File

@ -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);