|
Re: Robot drives forward with no joystick connected
We added code to check the array size of the POV before blindly indexing it.
The attached image returns a -1 instead of a zero. This still may not be what you want, but it shows how to detect an empty array and control the downstream value. You can also put your code into a case structure and only execute it if the array size is not zero.
Greg McKaskle
|