|
Re: Left and Right Drive Motors Teleop Disabled error
I don't see anything in the programming that would make your robot disable itself. However, I do see something that probably isn't what you want to do: you are invoking the Lift motor twice. I can't be certain, but one of them seems to have an extra space character in front of it, but that ought to show up on the Driver Station as an error. It shouldn't cause a disable, either. I also see a lot of oddly-run wires that don't make clear what they're connecting, and cleaning them up would help make the code easier to read.
Right now, I'm still unclear as to exactly what you are seeing. It sounds like you enable the robot, and you can drive it fine, but as soon you press any of the buttons to control a motor the robot gets disabled. Is that what is happening?
(I'm also wondering why you chose such a convoluted way of reading the individual joystick buttons. It would be a whole lot simpler to use an Index Array function, and I think it would be easier to read as well. But that's not relevant to the current issue, and I won't focus on it.)
|