1
0
forked from me/IronOS

Rough PID added

This commit is contained in:
Ben V. Brown
2016-09-21 00:17:26 +10:00
parent 52e92feae7
commit 65659b7b99
2 changed files with 63 additions and 0 deletions

18
workspace/ts100/inc/PID.h Normal file
View File

@@ -0,0 +1,18 @@
/*
* PID.h
*
* Created on: 20 Sep 2016
* Author: ralim
*/
#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_ */