Quote:
Originally Posted by Greg McKaskle
You've put the teleop code into RobotMain rather than into the Team Code Teleop function. While this isn't horrible, it does mean that the code in teleop, the drive code, and the camera update code are all running in parallel.
|
I tried moving the tank drive code into the teleop vi, and i experienced a very rapid burst of "teleop enabled" and "teleop disabled". This may be from the faulty wiring into the digital sidecar we discovered later. Should the tank drive code be inside the case structure that is true/false based on the Joystick Read.vi or should it be outside that loop, but inside the other case structure loop encasing most of the teleop code?
Quote:
Originally Posted by Greg McKaskle
Far worse, the code to read the Joystick 1, Open the Drive and read Joystick 2 are running in parallel with what I'm assuming is the Begin VI which is offscreen. This will likely mean that the joystick references are bad.
|
how else am i supposed to get the joystick references? in the begin vi, i intialized the joysticks and
set a reference to them. In Robot Main, i
get the reference. If i am not supposed to get the reference, how will i run tank drive?