From cd1241eca71979bff4399a6fb4898aca3065fff4 Mon Sep 17 00:00:00 2001 From: Dana Sorensen Date: Wed, 17 Aug 2016 11:45:32 -0600 Subject: [PATCH] fix bug in clip function The VescDriver::CommandLimit::clip function now returns the original value if it is not clipped. --- vesc_driver/src/vesc_driver.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/vesc_driver/src/vesc_driver.cpp b/vesc_driver/src/vesc_driver.cpp index b03afc2..a9111b5 100644 --- a/vesc_driver/src/vesc_driver.cpp +++ b/vesc_driver/src/vesc_driver.cpp @@ -288,6 +288,7 @@ double VescDriver::CommandLimit::clip(double value) name.c_str(), value, *upper); return *upper; } + return value; }