![]() |
Generic PID control code
2 Attachment(s)
I was asked by Adamdb of team #1583 to post a code example of what we did to execute a PID loop. The two files, pid.c and pid.h are attached below.
in order to use a pid loop, you must do a couple of things. first, you create the data structure, for example: PHP Code:
PHP Code:
then finally, you can execute the loop by doing this PHP Code:
happy control-loop-ing. Edit: i added the default code plus the PID code for those of you who are having trouble getting started. |
Re: Generic PID control code
I was going to post mine, but beside for some minor syntax differences, the drivers are identical.
Good work. PS. It looks like the uberbots' programmers have come a long way since I last talked to you before eliminations at UTC last year. |
Re: Generic PID control code
Again, nearly identical PID code. I constructed mine from the PID without a PhD article as well.
|
Re: Generic PID control code
I was about to make code from PID without a PhD, but then I saw this. It's always great to see teams post code for others to use.
|
| All times are GMT -5. The time now is 04:54. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi