Go to Post OK guys, the robot's overweight. You know the drill. - DonRotolo [more]
Home
Go Back   Chief Delphi > Technical > Control System > FRC Control System
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 20-02-2011, 21:06
Matthew Blake's Avatar
Matthew Blake Matthew Blake is offline
Registered User
FRC #3481 (Bronc Botz)
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Helotes, Texas
Posts: 43
Matthew Blake is an unknown quantity at this point
Potentiometer and Encoder Readings HELP

Hi all,

We are having trouble figuring out how to read the potentiometer and encoder data on the driver station. We are not sure if it has something to do with setting up the I/O (Configuring the Digital I/O).

We have in our code this statement that constructs the encoders:
m_LeftEncoder(4,3,4,4),m_RightEncoder(4,1,4,2)

Here is the line that gets the encoder values:
m_LeftEncoder.Get(), m_RightEncoder.Get()

Here is the line that gets the potentiometer values:
double raw value = (double) ds->GetAnalogIn(1);
__________________
FTC Team 4008: 2009-2012
FTC Team 4602: 2010-2012
FRC Team 3481: 2010-2012
Reply With Quote
 


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 05:33.

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