From 525448de93cae22242a5b8fbe695d77ae0299370 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Wed, 4 Jan 2017 14:38:54 -0500 Subject: [PATCH] navigator follow target add harmless float cast --- src/modules/navigator/follow_target.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/navigator/follow_target.cpp b/src/modules/navigator/follow_target.cpp index 4c6a018866..911d284515 100644 --- a/src/modules/navigator/follow_target.cpp +++ b/src/modules/navigator/follow_target.cpp @@ -311,7 +311,7 @@ void FollowTarget::on_active() } else if (target_velocity_valid()) { - if ((current_time - _last_update_time) / 1000 >= _step_time_in_ms) { + if ((float)(current_time - _last_update_time) / 1000.0f >= _step_time_in_ms) { _current_vel += _step_vel; _last_update_time = current_time; }