diff options
| author | Selene ToyKeeper | 2017-09-10 01:33:04 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2017-09-10 01:33:04 -0600 |
| commit | 4c2ac2d287fd15e1db51833c0a6cb4915191edb7 (patch) | |
| tree | 45e34c5929d05fdfaeedb8038b44e0bfeed244c5 /spaghetti-monster | |
| parent | Made thermal regulation slightly more prediction-heavy, less noisy at stable ... (diff) | |
| download | anduril-4c2ac2d287fd15e1db51833c0a6cb4915191edb7.tar.gz anduril-4c2ac2d287fd15e1db51833c0a6cb4915191edb7.tar.bz2 anduril-4c2ac2d287fd15e1db51833c0a6cb4915191edb7.zip | |
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)
Diffstat (limited to 'spaghetti-monster')
| -rw-r--r-- | spaghetti-monster/fsm-adc.c | 4 |
1 files 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) |
