aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster
diff options
context:
space:
mode:
authorSelene ToyKeeper2017-09-10 01:33:04 -0600
committerSelene ToyKeeper2017-09-10 01:33:04 -0600
commit4c2ac2d287fd15e1db51833c0a6cb4915191edb7 (patch)
tree45e34c5929d05fdfaeedb8038b44e0bfeed244c5 /spaghetti-monster
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)
Diffstat (limited to 'spaghetti-monster')
-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)
If you find this content useful please consider a small donation via bitcoin: bitcoin:1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2?amount=0.001&message=Donation Scraping git contents via cgit is very resource intensive. The continued hosting of these git repositories is entirely financed by your bitcoin contributions. For donations of a least 1 mBTC you include your IP address in the message of your bitcoin donation. This will remove this message in the future for requests from your IP, which will significantly reduce token usage. In any case, any contributions to bitcoin address 1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2 are very welcome. Thanks in advance for you contribution to a self-sustaining ecosystem.