From 7690d596eab3bbbad34e79e37a0849337db3aa5c Mon Sep 17 00:00:00 2001 From: Dominique Luna Date: Thu, 25 May 2017 16:41:18 -0700 Subject: [PATCH] Update main.cpp Add a note about dividing by 25 radians before sending the steering value back to the server. --- src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 833607d8b..36c9cd7ab 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -102,6 +102,8 @@ int main() { double throttle_value; json msgJson; + // NOTE: Remember to divide by deg2rad(25) before you send the steering value back. + // Otherwise the values will be in between [-deg2rad(25), deg2rad(25] instead of [-1, 1]. msgJson["steering_angle"] = steer_value; msgJson["throttle"] = throttle_value;