View Single Post
  #8   Spotlight this post!  
Unread 16-10-2006, 00:35
gblake's Avatar
gblake gblake is offline
6th Gear Developer; Mentor
AKA: Blake Ross
no team (6th Gear)
Team Role: Mentor
 
Join Date: May 2006
Rookie Year: 2006
Location: Virginia
Posts: 1,939
gblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond repute
Re: vEx PWM Motor Response

Quote:
Originally Posted by Gdeaver
One note about driving the vex straight with encoders. There appears to be some latency with the encoder read block. Try toggling the order of the encoder reads. Read right encoder then left, take action, read left encode then right, take action. I was able to get consistent straight runs of 20 ft.
Thanks for the suggestion - I tried that - You or someone else gave me that hint before.

My machine would straighten itself each time its heading got off (detected by counting encoder tics); but the asymmetry in the CW and CCW motor response curve meant that it would slowly drift sideways each time it would slowly turn away from its intended heading and then more quickly compensate to return back to its intended heading.

Using EasyC to fix that (with proper timing of the sensor reads, filtering of the sensor data, accurate calcuation of position and heading, and feedback control of the entire system) was too much like sticking my finger in a light socket....

:-)

Blake
__________________
Blake Ross, For emailing me, in the verizon.net domain, I am blake
VRC Team Mentor, FTC volunteer, 5th Gear Developer, Husband, Father, Triangle Fraternity Alumnus (ky 76), U Ky BSEE, Tau Beta Pi, Eta Kappa Nu, Kentucky Colonel
Words/phrases I avoid: basis, mitigate, leveraging, transitioning, impact (instead of affect/effect), facilitate, programmatic, problematic, issue (instead of problem), latency (instead of delay), dependency (instead of prerequisite), connectivity, usage & utilize (instead of use), downed, functionality, functional, power on, descore, alumni (instead of alumnus/alumna), the enterprise, methodology, nomenclature, form factor (instead of size or shape), competency, modality, provided(with), provision(ing), irregardless/irrespective, signage, colorized, pulsating, ideate