Go to Post On these forums, there are so many people that we see working all of the time to try to help teams out, and just overall good people. To everyone who does that, thanks. - miketwalker [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 21-02-2011, 13:14
mutantblond mutantblond is offline
Registered User
FRC #2523
 
Join Date: Sep 2008
Location: st. johnsbury, vt
Posts: 43
mutantblond is an unknown quantity at this point
Re: Analog Breakout trouble-shooting

If I use AnalogChannel(1), and plug the PWM into the pins closest to the PD supply connector, I get the same result.
I've checked that the PWM cable is ok - the PWM inputs into the AB board are what they should be.
The other thing that happens that's kinda strange is when I disable the 'bot, the While loop keeps going - I actually have a counter in that loop that prints out at the same time as the Voltage is being printed out.
Reply With Quote
  #2   Spotlight this post!  
Unread 21-02-2011, 13:39
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Analog Breakout trouble-shooting

Quote:
Originally Posted by mutantblond View Post
If I use AnalogChannel(1), and plug the PWM into the pins closest to the PD supply connector, I get the same result.
Does that include the "Attempting to reuse an allocated resource" error message? Look to see what else might be configured to use Analog Input 1 (the gyro, for example). You might need to choose Channel 7, for example.
Reply With Quote
  #3   Spotlight this post!  
Unread 21-02-2011, 14:20
mutantblond mutantblond is offline
Registered User
FRC #2523
 
Join Date: Sep 2008
Location: st. johnsbury, vt
Posts: 43
mutantblond is an unknown quantity at this point
Re: Analog Breakout trouble-shooting

where are the allocated channels listed? does just the gyro and the battery voltage have allocated channels? Gyro is channel 1
Reply With Quote
  #4   Spotlight this post!  
Unread 21-02-2011, 14:35
mutantblond mutantblond is offline
Registered User
FRC #2523
 
Join Date: Sep 2008
Location: st. johnsbury, vt
Posts: 43
mutantblond is an unknown quantity at this point
Re: Analog Breakout trouble-shooting

Alan,
thank you! 10 hours + later....
now onto the pot
Reply With Quote
  #5   Spotlight this post!  
Unread 21-02-2011, 14:36
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Analog Breakout trouble-shooting

Channel 8 is pre-assigned to the battery voltage monitoring. Other than that, only the analog channels your program actually opens will be allocated. So the answer is that they are listed in your source code.

Quote:
Originally Posted by mutantblond View Post
thank you! 10 hours + later....
It looks like it was just your bad luck to choose the two channels that already had things connected to them. The error message is pretty specific, though.
Reply With Quote
Reply


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


All times are GMT -5. The time now is 17:49.

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