|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools |
Rating:
|
Display Modes |
|
#3
|
||||
|
||||
|
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. Last edited by marccenter : 19-11-2012 at 17:14. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |