We’re using the Chicklet with the Logitech NASCAR Steering Wheel. It’s all working great, but we’ve got a small issue that concerns me.
Because the foot pedals return a value of 255 when up and 0 when fully depressed, our code has to account for this in a different way than we would for a normal joystick. In essence, this means that an input of 127 to our code looks like a halfway depressed foot pedal.
That’s all well and good until the Chicklet is unplugged or loses power while the robot is still powered on. If that happens, then the OI outputs a value of 127, the robot thinks we’ve told it to move, and off it goes!
We have a disable switch plugged into our OI Competition port at all times, but we’ve had some cases where the switch wasn’t down when the chicklet was unplugged. And I’m actually more worried about the potential for robot misbehavior at competition. Any comments? Any ideas for how our code could detect a missing Chicklet?