mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
22 lines
357 B
C
22 lines
357 B
C
/*
|
|
* 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"
|
|
|
|
typedef struct {
|
|
uint32_t kp, ki, kd; //PID values
|
|
} pidSettingsType;
|
|
|
|
int32_t computePID(uint16_t setpoint);
|
|
void setupPID(void);
|
|
#endif /* PID_H_ */
|