Go to Post ... so I have to ask: ... Are you nuts? - I hope you are - as crazy as Dean :^) - KenWittlief [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 Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 02-20-2011, 04:16 PM
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
programming C++ for potentiometer

could someone post a sample code for reading the output of a potentiometer? We've got ours hooked up to AnalogChannel(1), and upon pressing a certain button on the gamepad, want to run a motor until the potentiometer reaches a certain value.
i have searched all over for sample code here, but have found what's there to be of limited use to us, being the novices with this as we are.
Thanks so much!
Reply With Quote
  #2   Spotlight this post!  
Unread 02-20-2011, 05:49 PM
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: programming C++ for potentiometer

this always happens to me - I can spend an hour searching for a thread, then as soon as I post my question, I finally find the thread. for anyone looking for the same topic, check out http://www.chiefdelphi.com/forums/sh...iometer+cod e
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 10:52 AM.

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