View Single Post
  #7   Spotlight this post!  
Unread 05-12-2002, 09:35
ttedrow's Avatar
ttedrow ttedrow is offline
Herding electrons
AKA: Tim Tedrow
FRC #0281 (EnTech)
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2000
Location: Greenville, SC
Posts: 165
ttedrow will become famous soon enoughttedrow will become famous soon enough
Eric,

Thanks for the comments.

Each loop has separate tuning values. They are set in the Loop Tuning section of the code by writing them to the scratch pad RAM on initialization.

The tuning values are:
Proportional Gain
Integral Time (number of program cycles)
Integral Step (gain)
Derivative Gain

The integral is the tricky part since it requires time to implement. The program cycle time is the only timing function available, so if your program varies in cycle time the integral part may not work as expected.

I have updated to code to use mechanical limit switches. They will stop the movement and prevent integral windup.

The ZIP file with the code is now in the White Paper section.
http://www.chiefdelphi.com/forums/papers.php?s=
__________________
Sr. Design Engineer
Caterpillar Inc.
Greenville, SC

KD4EGM

FRC 281 Greenvillains
Infected with the FIRST virus in 2000

Yes, Chute Door!!!