From 64315bfed86e8d7764985ad2cc2ccb0bce9780ef Mon Sep 17 00:00:00 2001 From: Tom Pittenger Date: Sat, 23 Apr 2016 23:51:33 -0700 Subject: [PATCH] Revert "APMRover2: clipped param cmd float to zero" This reverts commit cbbee1149d3762bcfebd1b3b0651ffe7ff1b3e88. --- APMrover2/commands_logic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/APMrover2/commands_logic.cpp b/APMrover2/commands_logic.cpp index a03860bacf..8b8038624a 100644 --- a/APMrover2/commands_logic.cpp +++ b/APMrover2/commands_logic.cpp @@ -186,7 +186,7 @@ void Rover::do_nav_wp(const AP_Mission::Mission_Command& cmd) // this will be used to remember the time in millis after we reach or pass the WP. loiter_time = 0; // this is the delay, stored in seconds - loiter_time_max = (cmd.p1 >= 1) ? cmd.p1 : 0; + loiter_time_max = cmd.p1; // this is the distance we travel past the waypoint - not there yet so 0 initially distance_past_wp = 0;