Go to Post the best way to make things most unfair is to have different rules for different people. - Jack Jones [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
  #9   Spotlight this post!  
Unread 21-01-2015, 08:54
Qbot2640's Avatar
Qbot2640 Qbot2640 is offline
Registered User
AKA: Terry McHugh
FRC #2640 (Hotbotz)
Team Role: Mentor
 
Join Date: Sep 2012
Rookie Year: 2012
Location: Reidsville, NC
Posts: 473
Qbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond reputeQbot2640 has a reputation beyond repute
Re: How to Program the encoder?

Quote:
Originally Posted by Alan Anderson View Post
The examples do show you how to read the sensor values. What you do with the results is up to you.

So what do you want to do with them? That's the question you need to answer in detail before you can get advice on how to do it. "Set distance" and "monitor travel" are too vague. You need to give much more detail on how your robot is designed, where you plan your sensors to be, and exactly what your goal is.
First - thanks for the responses, Second - please be patient!

We have never used encoders. Our method has always been to run the motors for a specific amount of time to get where we're trying to go. Obviously conditions change and our results can vary.

We want to use the encoders to "measure" a specific distance, so we can program the robot to move "x...feet" and then stop (or do "whatever"). We also want to use the encoder output to compare movement from left and right and correct drift. We largely got lucky last year with our "run the motor for this long" method...but were burned by drift in several matches - having our auto shot miss because the robot turned slightly.

Please understand...I agree that the examples provide information, but I have to believe that there are many users like me who have tried hard to fill in the blanks and just can't figure it out. A simple example of one of these "blanks" is where to put the code given in the examples....begin?....periodic tasks?....The examples are not at all "beginner friendly."

This will be a new thing for us, and I really need to understand how to do it because I feel like I need to sell the idea to others on my team who think our programming is sophisticated enough...I really thing we need to master this if we expect to grow at all.
__________________

2012 Palmetto Regional Winners (Thanks 2059, 2815, and 287).
2012 Newton 14th Seed
2013 Chesapeake Regional Imagery Award Winners
2014 North Carolina Regional Imagery Award Winners
2014 Greater DC Regional Team Spirit Award Winners
2015 North Carolina Regional Finalists (Thanks 3971 and 587)
 


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 22:18.

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