OCCRA
Go to Post It's important to know that it isn't always best to have biggest machine out there. - Quatitos [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Events   CD-Media   CD-Spy   FRC-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-05-2009, 11:12 AM
jjauss jjauss is offline
Registered User
FRC #1182
 
Join Date: Jan 2007
Location: Parkway South
Posts: 2
jjauss is an unknown quantity at this point
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
Attached Files
File Type: zip Team 1182.zip (288.5 KB, 53 views)
  #2   Spotlight this post!  
Unread 02-05-2009, 11:23 AM
martin417's Avatar
martin417 martin417 is offline
Opinionated old goat
AKA: Martin Wilson
FRC #4509 (Mechanical Bulls)
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2008
Location: Buford, GA
Posts: 628
martin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond repute
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)
__________________
Former mentor Team 1771
Mentor Team 4509
  #3   Spotlight this post!  
Unread 02-07-2009, 08:26 AM
jjauss jjauss is offline
Registered User
FRC #1182
 
Join Date: Jan 2007
Location: Parkway South
Posts: 2
jjauss is an unknown quantity at this point
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
Attached Files
File Type: zip Team 1182.zip (551.5 KB, 47 views)

Last edited by jjauss : 02-07-2009 at 08:28 AM.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dashboard and Robot main with Axis camera Team2883 General Forum 9 01-10-2009 06:35 AM
Help with autonomous MorbidAngel General Forum 2 12-11-2008 03:35 PM
Trouble with Autonomous popnbrown Programming 15 02-27-2007 07:48 PM
Autonomous With Camera schenkin Programming 6 02-05-2005 04:20 PM
What to do with autonomous Rickertsen2 Programming 48 02-17-2004 03:22 PM


All times are GMT -5. The time now is 08:31 AM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi