Go to Post last year's tradition is this year's rule change! - EricH [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

 
Reply
Thread Tools Rate Thread Display Modes
  #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
  #2   Spotlight this post!  
Unread 20-02-2011, 21:42
EricS-Team180's Avatar
Happy Birthday! EricS-Team180 EricS-Team180 is offline
SPAM, the lunchmeat of superheroes!
AKA: Eric Schreffler
FRC #0180 (SPAM)
Team Role: Engineer
 
Join Date: Apr 2002
Rookie Year: 2001
Location: Stuart, Florida
Posts: 561
EricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond repute
Re: Potentiometer and Encoder Readings HELP

...do I understand you to mean you are trying to do digital and analog input through the cypress board and driver station? In that case, are you using the dsEnhancedIO?
__________________

Don't PANIC!
S. P. A. M.
Reply With Quote
  #3   Spotlight this post!  
Unread 20-02-2011, 21:46
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
Re: Potentiometer and Encoder Readings HELP

No, we are just trying to read data to the "user messages" on driver station... we were wondering if we had to set up the I/O to be able to receive the info from the potentiometer and the encoders.
__________________
FTC Team 4008: 2009-2012
FTC Team 4602: 2010-2012
FRC Team 3481: 2010-2012
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 16:50.

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