Go to Post I can't claim to be an expert in the stess analysis field - I just play one on TV, er CD, er - okay, so call me a poser! - petek [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

 
 
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #3   Spotlight this post!  
Unread 01-11-2009, 21:46
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
Smile Re: [OCCRA]: OCCRA 2009 VEXnet Test Program

Here's even a better test program. It prints out statements in Auton and Operator Control.
It prints out if Start/Stop switch is pressed in Auton and Stop Switch in Operator Control.
After Stop Switch is pressed, it prints out a halt statement every second in either operating mode.
(Start Switch = 5. Stop = 6)
In Auton, motors 1 and 2 cycle back and forth every half-second.
In Operator Control, Motors 1 and 2 are programmed for tank mode, using Channels 4 (left) and Channel 1 (right).
I tested the program with the VEXnet field controller and the VEX home brew competition switch.
It is important to know how to see the print commands in the terminal window for debugging in autonomous (VEXlabs knows about VEXnet competition switch not operating inside of EasyC V2.9.3.0).
So, after downloading the code, power cycle (off/on) the VEX controller,and VEX transmitter.
After green lights show up on VEXnet and Game, Turn on VEX transmitter front switch.
Then go to EasyC terminal window and hit refresh (bottom of screen). Sometimes a clear, stop, and then start
are necessary. You should see something like WIFI competition project words show up in terminal window.
Now hit Start Switch plugged in port 5 to start Auton. Stop Switch in port 6 will stop Auton and Switch 5 will restart.
In operator control only Switch 6 operates as a kill switch (no restarting). Take a look.
__________________
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:14.
Reply With Quote
 


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]: 2009 OCCRA - Easy_C w/VEXnet version 2.9.3.0 marccenter OCCRA Programming 2 17-09-2009 15:42
[OCCRA]: OCCRA 2008 Drive Straight Program w/PI Control marccenter OCCRA Programming 2 01-05-2009 16:14
[OCCRA]: OCCRA 2008 Line Follower - Program 2 marccenter OCCRA Programming 0 27-09-2008 00:27
[OCCRA]: OCCRA 2008 Line Follower - Program 1 marccenter OCCRA Programming 0 18-09-2008 11:32


All times are GMT -5. The time now is 02:42.

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