gobabygocarswithjoysticks / car-code

New code for go baby go cars!
MIT License
4 stars 1 forks source link

on startup, wait for joystick to be centered before moving? #20

Closed joshua-8 closed 2 years ago

joshua-8 commented 2 years ago

Waiting for the joystick to be centered might protect the car from moving uncontrollably if the connection to the joystick has been broken and random values are being received. A reason to not wait - what this code and the classic gbg code does - is that someone might think the car isn't working, when they just need to let go of the joystick.

joshua-8 commented 2 years ago

At the most recent gbg workshop, a car would drive forward at full speed on startup. I don't know why yet (likely a broken joystick wire), and this convinces me that this feature is a good idea.

joshua-8 commented 2 years ago

done