diff options
| author | Selene ToyKeeper | 2017-08-24 02:09:33 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2017-08-24 02:09:33 -0600 |
| commit | badf37072988156a4cee753b922306195ee45916 (patch) | |
| tree | 8ad06bafce90d22b5fb95308af3900b7a55d78d8 /spaghetti-monster/fsm-adc.c | |
| parent | Added thermal regulation to SpaghettiMonster / Baton. (diff) | |
| download | anduril-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.c | 2 |
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; |
