|
Re: We need help with the analog inputs
Actually, it appears that you are using Kevin Watson's code as your base. His code was recently updated if you want to use the old method of Get_Analog_Value, which does an analog-to-digital conversion when it is called.
Kevin's code comes with replacement code for the analog-to-digital conversion that should reduce computation and has many other benefits. If you read the readme or adc_readme file included in the zip file of the code, you should be able to set up the system and use the Get_Analog_Result function.
__________________
Student [2000 - 2001] Team 34 Rocket City Robotics
Plays Well With Others
2000 VA - Delphi "Driving Tomorrow's Technology"
2000 CMP - Top 5 Autodesk Visualization
2001 TX - Regional Finalist
Mentor [2004 - 2005][2007 - ????] Team 467 Shrewsbury Colonials (nee Duct Tape Bandits)
We Not Me
2004 LI - DaimlerChrysler Team Spirit
2004 LI - Website Design
2005 MD - Delphi "Driving Tomorrow's Technology"
2007 MA - Johnson & Johnson Sportsmanship
2008 CT - Judges' Award
2008 PA - Judges' Award
2010 MA - Judge's Award[/size][/font]
2012 DC - Chrysler Team Spirit[/size][/font]
2012 DC - Regional Winners[/size][/font]
2013 MAWO - Engineering Inspiration[/size][/font]
|