2 * Based on https://github.com/br3ttb/Arduino-PID-AutoTune-Library
5 #ifndef _PID_AUTOTUNE_H
6 #define _PID_AUTOTUNE_H
12 class TemperatureControl
;
15 class PID_Autotuner
: public Module
20 void on_module_loaded(void);
21 uint32_t on_tick(uint32_t);
23 void on_gcode_received(void *);
26 void begin(float, StreamOutput
*, int );
30 TemperatureControl
*temp_control
;
31 float target_temperature
;
39 unsigned long peak1
, peak2
;
50 volatile unsigned long tickCnt
;
53 #endif /* _PID_AUTOTUNE_H */