|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
ADC problem
All of our analog inputs appear to be outputting the same value, that of channel 1. We are using the ADC code from Kevin's site, integrated into his camera code. We don't know what is wrong with this code...
Can anyone help us? or had same problem? |
|
#2
|
|||
|
|||
|
Re: ADC problem
Posting the code that you're using is probably the best way to get help...
|
|
#3
|
|||||
|
|||||
|
Re: ADC problem
If you're using Kevin's ADC code, you cannot use the usual Get_Analog_Value() function. I don't have the files handy to check, but the proper function to use is documented in his code.
(You also need to make sure you've defined the proper number of analog channels; that too is documented.) |
|
#4
|
|||
|
|||
|
Re: ADC problem
I can't put any code here because we don't even know what the problem is...
it's so sad that we don't even know the problem... we used Get_ADC_Result(channel number) function from kevin's code to get the value. And we set it to the analog inputs we needed... but when we turn on the robot and try to get data, we are getting 1888 for all of them... And when we change one thing, everything changes too. |
|
#5
|
||||
|
||||
|
Re: ADC problem
Quote:
-Kevin |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ADC code effecting motor outs??? | Kyveck | Programming | 16 | 28-03-2006 15:12 |
| adc code problem | railerobotics | Programming | 6 | 24-01-2006 22:26 |
| Need a realistic Statics Problem | sanddrag | Technical Discussion | 10 | 05-12-2005 15:07 |
| Programming Gyros | goegan31 | Programming | 33 | 19-05-2003 20:05 |
| The problem with scouting... | archiver | 2001 | 10 | 23-06-2002 23:49 |