Go to Post It is amazing how much a person's participation in FIRST can shape his/her character. - Jupee [more]
Home
Go Back   Chief Delphi > Competition > OCCRA > OCCRA Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 22-10-2008, 14:27
olsmrobotics's Avatar
olsmrobotics olsmrobotics is offline
OLSM Robotics Team
None #0009 (St. Mary's Prep)
Team Role: Student
 
Join Date: Sep 2008
Rookie Year: 2008
Location: Michigan
Posts: 8
olsmrobotics is on a distinguished road
[OCCRA]: VEX Programming

We would like to address this question to Mr. Mark Center regarding VEX programming.

I have had a lot of problems with the new vex program template and have a few questions. When I try and use the template supplied on Chief Delphi, it skips autonomous mode and goes straight to user control, in addition I am wondering if I can use a while loop within the functions, or will that affect the time argument specified in the function parameters. Also,one last question, if i program a return from one of the two functions, Autonomous or User control, even though they are void functions, will it it end the function and just go back to void main, or will it crash the program.
__________________
Reply With Quote
  #2   Spotlight this post!  
Unread 29-10-2008, 11:25
marccenter's Avatar
marccenter marccenter is offline
Registered User
FRC #3548 (RoboRavens2)
Team Role: Coach
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Royal Oak
Posts: 406
marccenter has a spectacular aura aboutmarccenter has a spectacular aura about
Re: [OCCRA]: VEX Programming

OLSM,
Please look at the examples I have posted in the OCCRA programming forum. Pay close attention to the example I provided for the Royal Ravens team.

You must use a while loop inside of the autonomous program, otherwise it operates just once. I found that out myself by playing with the program at home. It does not alter the time of the autonomous period (15 seconds).
__________________
Marc Center
FIRST FRC Mentor/Coach - Team 3548 Royal Oak RoboRavens#2 - on Sabbatical 2017 season
marc.center@gmail.com
Mobile: 248-255-7377

Last edited by marccenter : 29-10-2008 at 11:29. Reason: more info
Reply With Quote
  #3   Spotlight this post!  
Unread 29-10-2008, 11:38
marccenter's Avatar
marccenter marccenter is offline
Registered User
FRC #3548 (RoboRavens2)
Team Role: Coach
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Royal Oak
Posts: 406
marccenter has a spectacular aura aboutmarccenter has a spectacular aura about
Re: [OCCRA]: VEX Programming - OLSM Test Program

Dear OLSM,
Ok, Here is a sample program, same as RO ravens program with the name modified for you so Chief Delphi website would allow me to upload.

1) Autonomous operation requires you to wire a start button to input 5.

2) To activate autonomous, turn on VEX transmitter, then hit Start Switch.

3) Go to the terminal window. You should see print statements that show
the various steps through the autonomous operation.

4) A tank block has been placed in the autonomous period. Note that it does
not work with your remote controls as expected.

5) A tank block has been also placed in the operator controlled period. Note
that it does work if your motors are wired to Motor1 and Motor 2 outputs.

6) Oh yeah, my name Marc is spelled with a c not a k - for next time.

7) Don't know about what problems you will have with return statements. You will need to experiment. Place print statements in all paths to help you debug operation. Once you figure out how it works, remove the print statements, they take about 10 milliseconds each and are time intensive.

8) Go OCCRA Teams!
__________________
Marc Center
FIRST FRC Mentor/Coach - Team 3548 Royal Oak RoboRavens#2 - on Sabbatical 2017 season
marc.center@gmail.com
Mobile: 248-255-7377

Last edited by marccenter : 19-11-2012 at 17:13.
Reply With Quote
Reply


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
[OCCRA]: 2008 OCCRA VEX Carpet Playing Field - Home Depot marccenter OCCRA Programming 1 06-11-2008 09:57
[OCCRA]: OOCRA 2008 VEX Programming Workshop marccenter OCCRA Programming 0 14-09-2008 20:17
[OCCRA]: vex programming HPRobotics OCCRA Q&A 1 02-10-2007 21:43
[OCCRA]: VEX Programming kit Eric Yahrmatter OCCRA Q&A 1 16-09-2006 10:52


All times are GMT -5. The time now is 03:37.

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


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