View Single Post
  #2   Spotlight this post!  
Unread 29-01-2007, 23:31
bear24rw's Avatar
bear24rw bear24rw is offline
Team 11 Programming Captain
AKA: Max T
FRC #0011 (MORT)
Team Role: Programmer
 
Join Date: Sep 2005
Rookie Year: 2005
Location: Flanders, NJ
Posts: 385
bear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to behold
Send a message via AIM to bear24rw
Re: Programming Analog Input from 2004 Controller

For the 2004 RC you can take a look at:
http://www.ifirobotics.com/docs/lega...2004-02-26.zip
For the default code. To get an analog input from that:
Get_Analog_Input(rc_ana_in01);
That should give you the 10 bit analog value for what ever you have hooked up to analog input 1.
That code should compile straight out of the box (zip) with mplab 7.20 and 2.4 (i think) compiler