This is a page describing the LineRunner algorithm to 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 run so people can see how they impact the line-following behavior.
Besides the visual document below, the following links may be useful:
SwampPid
Calibrate
ConfigPID
ResetCounters
DecideMove
CalcError
CalcIntegral
CalcTurn
UpdatePreviousError
CalcBMotor
DisplayValues
MakeMove
Comments (0)
You don't have permission to comment on this page.