aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster/fsm-adc.c
diff options
context:
space:
mode:
authorSelene ToyKeeper2017-08-24 02:09:33 -0600
committerSelene ToyKeeper2017-08-24 02:09:33 -0600
commitbadf37072988156a4cee753b922306195ee45916 (patch)
tree8ad06bafce90d22b5fb95308af3900b7a55d78d8 /spaghetti-monster/fsm-adc.c
parentAdded thermal regulation to SpaghettiMonster / Baton. (diff)
downloadanduril-badf37072988156a4cee753b922306195ee45916.tar.gz
anduril-badf37072988156a4cee753b922306195ee45916.tar.bz2
anduril-badf37072988156a4cee753b922306195ee45916.zip
Added a ramping UI example.
Added ramping support in general.
Diffstat (limited to 'spaghetti-monster/fsm-adc.c')
-rw-r--r--spaghetti-monster/fsm-adc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/spaghetti-monster/fsm-adc.c b/spaghetti-monster/fsm-adc.c
index 8af3487..b3ae4e9 100644
--- a/spaghetti-monster/fsm-adc.c
+++ b/spaghetti-monster/fsm-adc.c
@@ -231,6 +231,8 @@ ISR(ADC_vect) {
if (underheat_lowpass < UNDERHEAT_LOWPASS_STRENGTH) {
underheat_lowpass ++;
} else {
+ // FIXME: don't warn about underheating when voltage is low
+ // (LVP and underheat warnings fight each other)
// how far below the floor?
int16_t howmuch = (THERM_FLOOR - projected_temperature) >> THERM_DIFF_ATTENUATION;
if (howmuch < 1) howmuch = 1;