Go to Post With people from the high northeast, mid east, mid west and far west all in one hotel room, we had the time of our lives simply by sitting there. - Keith Chester [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 19-02-2010, 16:12
DjMaddius's Avatar
DjMaddius DjMaddius is offline
Registered User
AKA: Matt Smith
FRC #2620 (Southgate Titans)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Southgate, Mi
Posts: 161
DjMaddius is an unknown quantity at this point
Rotational Encoders?

Will the normal encoder class read the rotational encoder the same as the ones on the gear boxs?

Or is there a specific way to use the rotational encoders? And if there is, how so?


Examples would be nice!
Reply With Quote
  #2   Spotlight this post!  
Unread 19-02-2010, 16:27
oddjob oddjob is offline
Registered User
no team
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Earth
Posts: 118
oddjob is a splendid one to beholdoddjob is a splendid one to beholdoddjob is a splendid one to beholdoddjob is a splendid one to beholdoddjob is a splendid one to beholdoddjob is a splendid one to beholdoddjob is a splendid one to behold
Re: Rotational Encoders?

Yes.

Code:
  INT32 count_encoder_1;

  Encoder *m_encoder_1;

...

    m_encoder_1 = new Encoder(1, 2, false, Encoder::k4X);
    m_encoder_1->Reset();
    m_encoder_1->Start();
...
    count_encoder_1 = m_encoder_1->Get();
Reply With Quote
  #3   Spotlight this post!  
Unread 19-02-2010, 16:31
DjMaddius's Avatar
DjMaddius DjMaddius is offline
Registered User
AKA: Matt Smith
FRC #2620 (Southgate Titans)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Southgate, Mi
Posts: 161
DjMaddius is an unknown quantity at this point
Re: Rotational Encoders?

Alright thanks
Reply With Quote
  #4   Spotlight this post!  
Unread 20-02-2010, 22:01
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,113
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: Rotational Encoders?

Quote:
Originally Posted by DjMaddius View Post
Will the normal encoder class read the rotational encoder the same as the ones on the gear boxs?

Or is there a specific way to use the rotational encoders? And if there is, how so?

Examples would be nice!
Are you talking about the magnetic angular position sensors? How to use them depends mostly on what you want to use them for. It would probably be easiest to read the analog sine/cosine values, which is appropriate for measuring something like the angle of an arm joint.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
pic: Saving weight (and rotational mass) M4 Sherman Extra Discussion 11 09-08-2006 00:20
Encoders Ctx32 Programming 8 13-05-2006 23:54
3 Encoders stephenthe1 Programming 5 17-11-2005 19:21
multi rotational potentiometers jdawson Electrical 8 27-01-2003 08:12


All times are GMT -5. The time now is 03:24.

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