aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSelene ToyKeeper2017-09-10 01:33:04 -0600
committerSelene ToyKeeper2017-09-10 01:33:04 -0600
commit4c2ac2d287fd15e1db51833c0a6cb4915191edb7 (patch)
tree45e34c5929d05fdfaeedb8038b44e0bfeed244c5
parentMade thermal regulation slightly more prediction-heavy, less noisy at stable ... (diff)
downloadanduril-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)
-rw-r--r--spaghetti-monster/fsm-adc.c4
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)