Quote:
Originally Posted by Kevin Sevcik
Problematic and probably overkill. How do you implement default code that doesn't need to be changed to run a robot if missing a joystick means the robot won't run? Plus, disabling the whole robot when a joystick read fails probably takes more work.
|
It would only disable the robot if a joystick, which would have been enumerated at the beginning, produces multiple bad reads in a row. This way it would only disable if a joystick went missing while it was running, it wouldn't check at boot. Or you could have it check for joysticks at boot, and simply have four boolean values that need setting.