Go to Post HOLY MOLY CANOLI THIS LOOKS LEGIT - MasterEric [more]
Home
Go Back   Chief Delphi > Other > FIRST Tech Challenge
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
  #1   Spotlight this post!  
Unread 12-11-2008, 00:03
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
[FTC]: Progress report on using encoders

I finally got back to FTC programing.

I'm now using the latest FTC update, which has a bugfix for the "FTC MOVE MOTORS.VI" which was apparently having trouble with reading the encoder.

So I took Team 288's template and switched the drive logic for a single stick drive, ensuring that I clip the motor drive signals to +/- 100.

Yay... the program works with no huge delays and no weird "dead times".
It seems like "move motors" is pretty robust at this time.

So, I then had to try what I really wanted to do, and that was to replace "Move Motors" with "FTC Constant Speed.vi"

Constant speed should use the encoders to provide a more consitent driving experience, with better low-speed control and less degredation as the battery voltage drops.

I replaced the VI's and made sure the controls were compatible.

When I initially started running the new program it was great. It could crawl along with good torque, and turning was very nice. Then, the old 2.5 second drive lock started happening, followed by long periods of no control at all. Then everything starts working just fine for a while.

Anticipating this problem I has tied one of the controller buttons to a tone output, so I could verify that even though the drive wasn't responding, the code was correctly seeing the button press., so Comms was good.

I switched back and forth between "move motors" and "constant speed" several times and each time I used Constant Speed, I would get the random drive failures.

It looks to me that there are still issued with the encoders. This is a new set of hardware, so I don't think it's a coincidence that it's hapenning again.

Anyone out there using encoders for speed control? Is it reliable?

Phil.
__________________
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
 


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
How to get robot to drive straigth using shaft encoders eccmaster Programming 5 02-02-2008 23:50
Autonomous using encoders Mr.G Programming 11 17-01-2006 03:34
Drive Straight C Code using Encoders without PID? Chris_Elston Programming 17 15-02-2005 23:41
Using Digi-Key Shaft Encoders D.Viddy Programming 45 02-01-2005 20:11
Using Shaft Encoders D.Viddy Programming 7 14-12-2004 18:27


All times are GMT -5. The time now is 18:09.

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