//主程序======================================================
#include “Main.h”
#include “PID_f1.h”
/* 。..。..。..。..。..。..。..。..。..。..。..。..。..。..。..。..。..。..。..。..。.. */
/* 。..。..。..。..。..。..。..。..。..。..。..。..。..。..。..。..。..。..。..。..。.. */
void main(void)
{
float x,y,z;
while(1)
{
x = PID_Control(y,z);
}
}
//PID子程序=====================================================
/*------------------------------------------------------------------*-
PID_f1.C (v1.00)
------------------------------------------------------------------
Simple PID control implementation.
See Chapter 35 for details.
COPYRIGHT
---------
This code is from the book:
PATTERNS FOR TIME-TRIGGERED EMBEDDED SYSTEMS by Michael J. Pont
[Pearson EducaTIon, 2001; ISBN: 0-201-33138-1]。
This code is copyright (c) 2001 by Michael J. Pont.
See book for copyright details and other informa