Go to Post So you wanna be a playa But your gear boxes aint fly? You gotta shift us up To get that high speed drive.... - Michelle Celio [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 17-01-2009, 12:13
darkorbit's Avatar
darkorbit darkorbit is offline
Electrical?!
AKA: Jin Lem
FRC #0069 (HYPER ROBOTICS)
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Quincy, MA
Posts: 57
darkorbit is a name known to alldarkorbit is a name known to alldarkorbit is a name known to alldarkorbit is a name known to alldarkorbit is a name known to alldarkorbit is a name known to all
optical encoder feedback windriver

I'm just wondering how do I recieve data back from the optical encoder using windriver? Do I see it threw the console? or debug window? This is my code:


INT32 encoderValue = myEncoder.get();
cout << encoderValue;
__________________


2007 BOSTON REGIONAL WINNERS (NU-HYPER-FORCE)
2008 Florida Regional 2nd Place
Reply With Quote
  #2   Spotlight this post!  
Unread 17-01-2009, 13:15
wt200999's Avatar
wt200999 wt200999 is offline
Texas Instruments
AKA: Will Toth
FRC #3005 (Robochargers)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2004
Location: Dallas, Texas
Posts: 323
wt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud of
Send a message via MSN to wt200999
Re: optical encoder feedback windriver

Quote:
Originally Posted by darkorbit View Post
I'm just wondering how do I recieve data back from the optical encoder using windriver? Do I see it threw the console? or debug window? This is my code:


INT32 encoderValue = myEncoder.get();
cout << encoderValue;
You should see it either one. Make sure you have myEncoder.Start(); as well
__________________
Programming in LabVIEW? Try VI Snippets!

FIRST LEGO League 2004 - 2005
FRC Team 870 Student 2006 - 2009
FRC Team 3005 Mentor 2013 -
Reply With Quote
  #3   Spotlight this post!  
Unread 17-01-2009, 13:34
darkorbit's Avatar
darkorbit darkorbit is offline
Electrical?!
AKA: Jin Lem
FRC #0069 (HYPER ROBOTICS)
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Quincy, MA
Posts: 57
darkorbit is a name known to alldarkorbit is a name known to alldarkorbit is a name known to alldarkorbit is a name known to alldarkorbit is a name known to alldarkorbit is a name known to all
Re: optical encoder feedback windriver

Quote:
Originally Posted by wt200999 View Post
You should see it either one. Make sure you have myEncoder.Start(); as well
I added that but I still get nothing.
__________________


2007 BOSTON REGIONAL WINNERS (NU-HYPER-FORCE)
2008 Florida Regional 2nd Place
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
Optical Encoder Centering Tool Gary Bonner Kit & Additional Hardware 1 05-01-2009 18:19
Help Programming Transmissive Optical Encoder Module from usdigital.com programmr Programming 6 14-11-2008 19:20
A nice and cheap optical encoder! (not a question) windell747 Electrical 9 04-05-2008 14:13
programing the vex optical shaft encoder youngWilliam14 Programming 10 11-11-2007 16:16
Rotary Encoder (optical etc.) Gary C Technical Discussion 4 16-01-2005 18:23


All times are GMT -5. The time now is 02:53.

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