| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • Stop wasting time looking for files and revisions. Connect your Gmail, DriveDropbox, and Slack accounts and in less than 2 minutes, Dokkio will automatically organize all your file attachments. Learn more and claim your free account.

View
 

StLineRunner

Page history last edited by Mark Fussell 10 years ago

 

This is the LineRunner algorithm for the SwampTiger.  It is a general PID (Proportional to error, Integral (sum) of the error, Derivative (change) of the error), and I believe is organized unusually well for a NXT-G program.  Besides being organized well, it has the ability to cycle through different PID values during a series of runs so people can see how the different values impact the line-following behavior.

 

Besides the visual document below, the following links may be useful:

 

Note that some of these images are 1400 pixels wide and are shrunk to display inline.  You can enlarge them by opening them in their own window.

 

SwampPid

 

Calibrate

 

ConfigPID 

 

ResetCounters

 

DecideMove

 

CalcError

 

CalcIntegral

 

CalcTurn

 

UpdatePreviousError

 

CalcBMotor

 

DisplayValues

 

MakeMove

 

 

Comments (0)

You don't have permission to comment on this page.