Go to Post What isn't fun about watching a robot hang tubes? I love watching my team do it! - Michael Corsetto [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 10-21-2009, 08:32 PM
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: 407
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 : 11-19-2012 at 04:14 PM.
Reply With Quote
  #2   Spotlight this post!  
Unread 10-28-2009, 10:47 PM
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: 407
marccenter has a spectacular aura aboutmarccenter has a spectacular aura about
Re: [OCCRA]: OCCRA 2009 VEXnet Test Program 2 - EasyC V2.9.3.0

This VEXnet test program builds on the first.
During autonomous, Motor/Servo in position 1 , formerly position 8, cycles every one-half second and a print statement happens every one half second until the stop button is pressed. The system can be restarted if the start button in digital input port 5 is pressed.
During operator Control, Motors in position 1 and 2 are set up in tank mode and respond to the transmitter CH4 and CH1. A print statement also is issued every one second. The system can be stopped by pressing a switch that is connected to position 6, but not restarted until VEX controller is power cycled.
Autonomous print statement cannot be seen using EasyC Competition Software Switch from in EasyC - Vex Robotics knows about the issue.
The autonomous print statement works with the field controller system
I have from OCCRA.
__________________
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 : 11-19-2012 at 04:14 PM.
Reply With Quote
  #3   Spotlight this post!  
Unread 11-01-2009, 08:46 PM
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: 407
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 : 11-19-2012 at 04:14 PM.
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]: 2009 OCCRA - Easy_C w/VEXnet version 2.9.3.0 marccenter OCCRA Programming 2 09-17-2009 02:42 PM
[OCCRA]: OCCRA 2008 Drive Straight Program w/PI Control marccenter OCCRA Programming 2 05-01-2009 03:14 PM
[OCCRA]: OCCRA 2008 Line Follower - Program 2 marccenter OCCRA Programming 0 09-26-2008 11:27 PM
[OCCRA]: OCCRA 2008 Line Follower - Program 1 marccenter OCCRA Programming 0 09-18-2008 10:32 AM


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

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


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