View Single Post
  #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