View Single Post
  #4   Spotlight this post!  
Unread 21-01-2008, 19:11
TubaMorg TubaMorg is offline
Programmermechanicalelect ricalcoach
AKA: Dan
FRC #1480 (Robatos Locos)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Houston
Posts: 450
TubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond repute
Re: Help needed in autonomous programming for hybrid mode

Make sure to go through the tutorials in EasyC. They will teach you a lot about how to program your robot for the various modes.

When testing autonomous/hybrid you should make a competition port dongle. It plugs into the competition port of your OI. It should have two switches Enable/Disable and Manual/Autonomous. Here is the pinout:

http://www.ifirobotics.com/docs/comp...guide-reva.pdf

You only need SW1 and SW2. In general it is good to have this because turning on the robot will sometimes have very unpredictable results. Being able to quickly disable it is always a good idea. You can also simply unpower your O/I, but you still need a dongle to call Autonomous/Hybrid.

If you don't feel you can make your own dongle, AndyMark sells cool ones:

http://www.andymark.biz/am-0016.html

Now for hybrid you can use the IR sensor board that was sent to you prior to kickoff. That connects to your robot. You can use any regular old remote control to program and send signals to the IR receiver. Take a look at these documents.

http://www.usfirst.org/uploadedFiles...%20_121007.pdf

http://www.usfirst.org/uploadedFiles...0schematic.pdf

Essentially you can use the TV remote to send a signal to your IR receiver which can then signal your RC at one of your digital IO ports. Again, look closely at the EasyC tutorials on how to program your robot to handle this.