![]() |
Re: HELP: analog input
Make sure you are calling the function
Code:
Set_Number_of_Analog_Channels(SIXTEEN_ANALOG); /* DO NOT CHANGE! */Good luck. |
Re: HELP: analog input
Okay, here is code from our robot this year. This is exactly how we have written it and it works.
We made variables on top of the file: Code:
unsigned int BottomSonic = 0;Code:
Also, try it on a fresh piece of code with the absolute default code from IFI. |
Re: HELP: analog input
Make sure your init functions are correct.
and call the get_analog_value() |
Re: HELP: analog input
Quote:
|
Re: HELP: analog input
I have been having the exact same issue. I tried IFI's ADC, Kevin Watson's integrated into my code, Kevin Watson's from his website(unmodified), and whatever EasyC uses.
They all read 0. I have tried both the 2006 and 2007 controllers. I have the pot connected so the 5v+/gnd each connect to one side of the pot, and the signal is connected to the middle connector on the pot. If I short the gnd/sig pins the reading does NOT change. I have used Kevin Watson's ADC without any issues before now. I have run it on VEX, EDU, and 2005 controllers. I was at the Sussex mini-regional today and talked to 4-5 other programmers, and none of them had any ideas. What am I missing? Thanks, Eric Haskins |
| All times are GMT -5. The time now is 03:11. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi