diff options
Diffstat (limited to 'workspace/ts100/inc/PID.h')
-rw-r--r-- | workspace/ts100/inc/PID.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/workspace/ts100/inc/PID.h b/workspace/ts100/inc/PID.h new file mode 100644 index 00000000..3527c6d8 --- /dev/null +++ b/workspace/ts100/inc/PID.h @@ -0,0 +1,21 @@ +/* + * PID.h + * + * Created on: 20 Sep 2016 + * Author: ralim + * + * Functions for computing the PID for the iron temp + */ + +#ifndef PID_H_ +#define PID_H_ +#include "Analog.h" +#include "Interrupt.h" + +struct { + uint32_t kp, ki, kd; //PID values +} pidSettings; + +int32_t computePID(uint16_t setpoint); +void setupPID(void); +#endif /* PID_H_ */ |