[go: up one dir, main page]

Skip to content

Commit

Permalink
Update main.cpp
Browse files Browse the repository at this point in the history
Add a note about dividing by 25 radians before sending the steering value back to the server.
  • Loading branch information
domluna authored May 25, 2017
1 parent 79162eb commit 7690d59
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 7690d59

Please sign in to comment.