|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
Tonight, I found something interesting relating to the gyro code and Get_Analog_Value().
The initialization of the gyro code (Initialize_Gyro()) calls OpenADC(), but there is no call to CloseADC(), so that the ADC remains open. Get_Analog_Value() calls OpenADC() and CloseADC(). If you call Get_Analog_Value() after calling Initialize_Gyro(), it will call OpenADC() before the last call was closed. There are no handles to these, so I assume that if you close one, you close all. Does anyone know if this causes a problem? Or is it ok? ![]() |
|
#2
|
|||||
|
|||||
|
Re: Double calls of OpenADC()?
After rewriting the the gyro/analog input code to use SetChanADC(), the code error light went away. Check my post in Unknown Blinky-light type Errors for the code.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How does your team wire your Double Solenoids? | Doug G | Pneumatics | 14 | 17-02-2005 23:25 |
| Double Solenoid Leak | Darksun | Pneumatics | 4 | 18-02-2004 22:52 |
| Double Solenoid Wires | Lord Nerdlinger | Pneumatics | 4 | 17-02-2004 19:54 |
| FIRST Double Jeopardy! (8/27) | EddieMcD | Games/Trivia | 2 | 28-08-2003 21:41 |
| double solenoid | gail | OCCRA | 0 | 11-10-2002 19:42 |