Commit d73d39e9 authored by Alejandro Lopez Gestoso's avatar Alejandro Lopez Gestoso
Browse files

Change steering angle sign

parent e9f088bc
Pipeline #6448 passed with stages
in 39 seconds
......@@ -33,6 +33,7 @@ void CModelCarActuators::send_command(double speed,double steering)
this->send_request(ID_ARD_ACT_SPEED_CONTR,1, &cmd);
// remap steering
steering = -steering;
steering = steering > 100.f ? 100.f : steering;
steering = steering < -100.f ? -100.f : steering;
steering += 100.f;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment