Go to Post You are becoming the leaders of tomorrow by leading today. - Chris Fultz [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
  #1   Spotlight this post!  
Unread 09-11-2006, 02:44
CircularLogic CircularLogic is offline
Registered User
FRC #1546 (Chaos Inc)
Team Role: Leadership
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Baldwin
Posts: 38
CircularLogic will become famous soon enoughCircularLogic will become famous soon enough
Line Following with PID

Has anyone ever tried writing line following code using a PID style control system.

Right now I am using Lego Mindstorms, programming it with NQC (basically C for mindstorms with a few built in functions), and I am only allowed to use two light sensors.

Right now I am sucessfully able to drive my motors by having one function that rapidly turns them on and off for a certain period of time, which is passed to the function (in 10's of milliseconds). I take the threshold value of the black material and from it I subtract the current sensor value. I multiply that value by a gain and voila. That works well.

But then I tried to implement a Derivative control and everything went beserk.

Anyone ever do this or have any type of experience with it?
__________________
Team 1546 Chaos Incorporated
2005- SBPLI Rookie All Stars
2006- SBPLI Sportsmanship award.

Gotta hand it to the straight line autonomous mode, the most effective defense out there.

Proud beyond belief of the accomplishments of the second year, 20th ranked, 6 wins and 6 losses Chaos Incorporated.
 


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
Emergency: PID with Wheels Off the Ground Rick TYler Programming 9 07-02-2006 11:37
Light and Line Following Sensors jeffmorris FIRST Tech Challenge 1 15-12-2005 21:57
Problems with PID- PLEASE HELP!!! thinkpad Programming 12 10-02-2005 00:18
All-Time PID Drive with Hall-effects: Coming along very nicely jdong Programming 6 05-02-2005 19:39
Line Following -- Optical Sensors WillyC Electrical 4 23-01-2004 16:59


All times are GMT -5. The time now is 01:32.

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