Autonomous-Racing-PG / ar-tu-do

ROS & Gazebo project for 1/10th scale self-driving race cars
89 stars 36 forks source link

Joystick axes don't initialize at zero #151

Closed marian42 closed 5 years ago

marian42 commented 5 years ago

When using a gamepad, before an the throttle or brake are used for the first time, they don't send 0 values, but different values.

It can be reproduced like this: Tap the throttle trigger and release it. The throttle value should now go back to 0, but it is negative since the brake axis is not 0 until it has been changed once.