Go to Post I love you ChiefDelphi times! - Amanda Morrison [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 09-02-2005, 21:59
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Question Double calls of OpenADC()?

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   Spotlight this post!  
Unread 11-02-2005, 20:48
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
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.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 10:11.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi