View Single Post
  #9   Spotlight this post!  
Unread 12-02-2010, 20:59
umangv620 umangv620 is offline
Programming Captain
AKA: Umang
FRC #1403 (Cougar Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2008
Location: New Jersey
Posts: 80
umangv620 will become famous soon enoughumangv620 will become famous soon enough
Re: Need help w/ moving Camera Servo motors.

Quote:
Originally Posted by Greg McKaskle View Post
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 View Post
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?
__________________
Team 1403 Cougar Robotics

2009-2011 Programming Captain

2010
NJ-Regional - Chairmans Award
Reply With Quote