View Single Post
  #1   Spotlight this post!  
Unread 21-10-2009, 21:32
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
[OCCRA]: OCCRA 2009 VEXnet Test Program

Dear OCCRA Students,
I have created a simple test program for you to perform a basic checkout of your VEXnet system and show you how to use digital input 5 as a Start Switch and digital input 6 as a Stop Switch. You will also need to plug a servo module into motor/servo port 8.
Here's how the program works, after downloading the program with EasyC into the VEX microcontroller, switch to the VEXnet Competition Switch Simulator screen inside EasyC, adjacent to the terminal window.
Next, select the radio buttons to activate the Autonomous mode inside of the VEXnet Competition Switch Simulator screen. The Start and Stop button now control cycling of the servo module plugged into port 8. After hitting the Start button, the servo will move back and forth every 1/2 second until the Stop button is pressed. It will restart if you hit the Start button.

Operator Control is similiar. Switch the VEXnet Competition Switch Simulator radio buttons to Operator Control. Next, Switch back to Terminal Window to see a print statement come up every 1 second. The servo does not operate in this mode -- just the print statement. It seemed like it took about 10 seconds to show up the first time. You may have to play with the terminal window refresh, clear, stop and start buttons to have the print message show up. Sometimes I had to power cycle (turn off, turn on) the VEX microcontroller before the print statement showed up. The print statements will continue until the Stop Switch is pressed. This kills the print statements until the VEX controller is power cycled. The Start Switch has no functionality in Operator Control mode (it does not restart like Autonomous).
__________________
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