aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster/fsm-adc.h
diff options
context:
space:
mode:
authorSelene ToyKeeper2020-01-30 23:10:25 -0700
committerSelene ToyKeeper2020-01-30 23:10:25 -0700
commitd275f50525ed9a0950c743faa317c7aa4fe9420b (patch)
tree0a288282684a794e4d737289f5adedb0eaf96d02 /spaghetti-monster/fsm-adc.h
parentswitched to a pseudo-rolling-average method to reduce noise, set prescaler ba... (diff)
downloadanduril-d275f50525ed9a0950c743faa317c7aa4fe9420b.tar.gz
anduril-d275f50525ed9a0950c743faa317c7aa4fe9420b.tar.bz2
anduril-d275f50525ed9a0950c743faa317c7aa4fe9420b.zip
saving state of ADC / WDT refactoring before doing more changes... what changed so far:
- removed LVP lowpass and thermal regulation lowpass logic; it's probably redundant now - slowed ADC deferred logic timing to 4X per second instead of 16X, because there doesn't seem to be much reason to do it any faster - reduced thermal event rate-limit to just 1 second, for more responsive regulation - added "EV_temperature_okay" signal, to help stop adjustments at an appropriate time instead of going to far - sped up sleep LVP to one measurement every 8 seconds instead of 16, to help the aux LEDs respond to voltage changes faster (effect on standby time is negligible) - make sure the WDT doesn't set the ADC channel or counter... except in standby mode
Diffstat (limited to '')
-rw-r--r--spaghetti-monster/fsm-adc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/spaghetti-monster/fsm-adc.h b/spaghetti-monster/fsm-adc.h
index f4c1332..6283b2c 100644
--- a/spaghetti-monster/fsm-adc.h
+++ b/spaghetti-monster/fsm-adc.h
@@ -67,9 +67,9 @@ void battcheck();
#ifdef USE_THERMAL_REGULATION
-// default 5 seconds between thermal regulation events
+// default 1 seconds between thermal regulation events
#ifndef THERMAL_WARNING_SECONDS
-#define THERMAL_WARNING_SECONDS 5
+#define THERMAL_WARNING_SECONDS 1
#endif
// try to keep temperature below 45 C
#ifndef DEFAULT_THERM_CEIL