|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Coordinating Robot Main VI with Autonomous VI
To all:
We have gotten our robot main.vi to work, and we have gotten our camera code to work when it is run independently in a separate robot main.vi. However, when we put our camera code into autonomous independent.vi, we are having problems handshaking both of these - specifically, coordinating the intitializations of the motors, watchdogs, etc. I am attaching the code that we are running - any help would be greatly appreciated! John Jauss Team 1182 Coach |
|
#2
|
||||
|
||||
|
Re: Coordinating Robot Main VI with Autonomous VI
Put the camera code in robot main, and use a global variable for the output (area, min X, min Y, max X, max Y) Use that global variable in your autonomous vi (as well as your teleop vi if you are tracking in teleop)
|
|
#3
|
|||
|
|||
|
Re: Coordinating Robot Main VI with Autonomous VI
Okay, so in this version of the code we run the autonomous and the camera tracks colors and also sends signals to the motors which respond appropriately. Then in teleoperated, it continues to run the autonomous we just tried. The teleoperated basically doesn't even activate - we get no control of the joystick or our pressure switch.
We also tried putting the upper while loop from autonomous to robot main, but the results were the same. We think the global references to the motors are not working properly because they are not working in BOTH autonomous and teleoperated. We have done tests where it worked in only teleoperated and only autonomous, but never both sequentially. Also, adding a wait time did not affect our code. Thanks again for your help Team 1182 Last edited by jjauss : 07-02-2009 at 09:28. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Dashboard and Robot main with Axis camera | Team2883 | General Forum | 9 | 10-01-2009 07:35 |
| Help with autonomous | MorbidAngel | General Forum | 2 | 11-12-2008 16:35 |
| Trouble with Autonomous | popnbrown | Programming | 15 | 27-02-2007 20:48 |
| Autonomous With Camera | schenkin | Programming | 6 | 05-02-2005 17:20 |
| What to do with autonomous | Rickertsen2 | Programming | 48 | 17-02-2004 16:22 |