Go to Post In theory, we do not need teachers in this world because we have the written word, but in reality, teachers are one of the most valuable resources, if not the most valuable resource, we have. - Natchez [more]
Home
Go Back   Chief Delphi > Technical > Programming
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
  #5   Spotlight this post!  
Unread 06-02-2010, 23:24
michael1991j michael1991j is offline
Registered User
FRC #3139
 
Join Date: Feb 2010
Location: oxford alabama
Posts: 6
michael1991j is an unknown quantity at this point
Re: wiring and programing our optical encoders

hmm i wonder if it is somthing am doing wrong then

this is how i stated my code:

I state this inside my main class
Encoder encoder(1, 2, true);

and then in my teleop loop
I say
float tick = encoder.GetDistance() ;

printf("tick:%4.2f /n",tick );

and what i am getting is

tick:
tick:
tick:
.... and when I move my gear box i get no input
now i did noticed there is a spot for a jumper on the digital side car on the digital input sides do i need to put a jumper in there. the probem when i do that everything become nonresponsive until i remove it so does anybody know what am i doing wrong
 


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
Programing+encoders =? alaskabas Programming 2 24-02-2009 20:41
Wiring Gyros and Encoders? SuspectZero Electrical 3 03-02-2008 15:30
programing the vex optical shaft encoder youngWilliam14 Programming 10 11-11-2007 16:16
Optical Encoders misterikkit Robotics Education and Curriculum 7 22-12-2003 23:13
Programming Optical Encoders GrahamS314 Programming 5 09-03-2003 08:16


All times are GMT -5. The time now is 01:59.

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