From 4c2ac2d287fd15e1db51833c0a6cb4915191edb7 Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Sun, 10 Sep 2017 01:33:04 -0600 Subject: Adjusted thermal regulation based on results of some handheld runtime tests. It was bouncing before, and now it's not. (cut response magnitude in half, increased width of null zone) --- spaghetti-monster/fsm-adc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spaghetti-monster/fsm-adc.c b/spaghetti-monster/fsm-adc.c index 699c6cb..02fd8c2 100644 --- a/spaghetti-monster/fsm-adc.c +++ b/spaghetti-monster/fsm-adc.c @@ -187,9 +187,9 @@ ISR(ADC_vect) { // how far ahead should we predict? #define THERM_PREDICTION_STRENGTH 4 // how proportional should the adjustments be? - #define THERM_DIFF_ATTENUATION 2 + #define THERM_DIFF_ATTENUATION 3 // acceptable temperature window size in C - #define THERM_WINDOW_SIZE 8 + #define THERM_WINDOW_SIZE 10 // highest temperature allowed // (convert configured value to 14.1 fixed-point) #define THERM_CEIL (((int16_t)therm_ceil)<<1) -- cgit v1.2.3