View Single Post
  #4   Spotlight this post!  
Unread 11-03-2008, 20:14
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Command to enter program mode?

We've done it on the TechnoKats robots for the past two years. All it takes is a single wire from one of the digital outputs to the "PROG" pin on the remote programming header. This year it's "the blue wire" on the RC, with a single female servo pin crimped on each end and covered with heat shrink.

Make sure to configure the digital pin as an output and set it to a high level immediately upon starting the program. The User_Initialization() routine is the perfect place for this. Then have the program set it low in order to "press" the virtual program button.

Our software has a menu system based loosely on Kevin Watson's camera and tracking menus. One of the top-level commands is the letter "p" to put the robot controller in program mode. We just activate the Terminal window from the IFI loader and go from there.