View Single Post
  #4   Spotlight this post!  
Unread 12-11-2008, 12:20
PhilBot's Avatar
PhilBot PhilBot is offline
Get a life? This IS my life!
AKA: Phil Malone
FRC #1629 (GaCo: The Garrett Coalition)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Maryland
Posts: 747
PhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond repute
Re: [FTC]: Progress report on using encoders

I just setup a LabVIEW ap to illustrate the problem.

This code runs a loop where the encoders are reset, the motors run for a second, and then stopped for a second. This repeats while the encoder position is charted.

The first attached images are bad case where the motors are turned on immediately after resetting the encoders. The data shows how often the encoders don't get reset.

The second image set is better, I assume, because there is some delay between the reset and move. Only forgets to reset a couple of times

Adding a delay probably helps this code, but I want to know for sure that the encoders will reset properly.
Attached Thumbnails
Click image for larger version

Name:	BadEncoderData.jpg
Views:	53
Size:	84.3 KB
ID:	6951  Click image for larger version

Name:	BadEncoderProgram.jpg
Views:	65
Size:	98.6 KB
ID:	6952  Click image for larger version

Name:	GoodEncoderData.jpg
Views:	44
Size:	83.4 KB
ID:	6953  Click image for larger version

Name:	GoodEncoderCode.jpg
Views:	53
Size:	96.6 KB
ID:	6954  
__________________
Phil Malone
Garrett Engineering And Robotics Society (GEARS) founder.
http://www.GEARSinc.org

FRC1629 Mentor, FTC2818 Coach, FTC4240 Mentor, FLL NeXTGEN Mentor
Reply With Quote