Go to Post Is any robot ever actually done? - BlondeNerd [more]
Home
Go Back   Chief Delphi > Technical > Electrical
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
  #18   Spotlight this post!  
Unread 18-04-2013, 08:59
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,128
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Encoders (What's up with those?)

Quote:
Originally Posted by propionate View Post
Now that you're making me rethink this, it may not make a lot of sense to be averaging every 12 samples. It looks like the default is actually 1. I'm not sure if this is an error or not... I will definitely investigate this tomorrow.

It works wonderfully right now, but this could be the path to making it better.
You probably don't want the default of 1 with six pieces of tape, especially if it's sampling both rising and falling edges.

Try this: one piece of tape with the default sample size of 1 and setup to sample rising edges only. That way, it's always sampling the same edge of the same piece of tape, so the spacing is perfect... and with your 20ms update rate, you'll be getting a fresh reading every execution or your controller loop at wheel speeds of 3000 RPM or higher.


 


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 00:08.

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