|
[OCCRA]: OCCRA VEX Cortex program with Stop Switch only
Hey OCCRA VEX Cortex EasyC V4 programmers,
Here's a simple program showing how to use a stop switch to disable your program. I have included comments on where to add your program. The program disables both autonomous and operator (human) modes.
This program uses 2, VEX LED's (not supplied by OCCRA), one green, one red to display the status of the stop switch (green ok, red stopped). This part of the program is optional and will not be a problem if you do not have the LED's installed (digital outputs only).
Take a look at the program when you get a chance. Remember, you should be able to halt the motors and servos on your robot if the stop switch wired to digital input 6 is pressed in order to compete this Thursday. I have built a simple VEX competition switch box that will be used to verify that your robot is programmed accordingly.
__________________
Marc Center 
OCCRA VEX Mentor - 2007/8/9/10/11
FIRST FRC Mentor - Team 3548 Royal Oak/Lamphere
GM Hybrid System Engineer
marccenter@yahoo.com
Mobile: 248-255-7377
Last edited by marccenter : 11-19-2012 at 04:12 PM.
|