diff options
| author | Selene ToyKeeper | 2018-01-24 19:43:00 -0700 |
|---|---|---|
| committer | Selene ToyKeeper | 2018-01-24 19:43:00 -0700 |
| commit | 5ee5845d4614cb8285cdf0bf529c26bec7ce7217 (patch) | |
| tree | 646316e085d06ca544a5f0d162badbc003949492 /spaghetti-monster/fsm-adc.h | |
| parent | Thermal regulation adjustments... (diff) | |
| download | anduril-5ee5845d4614cb8285cdf0bf529c26bec7ce7217.tar.gz anduril-5ee5845d4614cb8285cdf0bf529c26bec7ce7217.tar.bz2 anduril-5ee5845d4614cb8285cdf0bf529c26bec7ce7217.zip | |
FSM: added ability to adjust temperature calibration in UI (lower-case therm_cal_offset var).
Diffstat (limited to 'spaghetti-monster/fsm-adc.h')
| -rw-r--r-- | spaghetti-monster/fsm-adc.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/spaghetti-monster/fsm-adc.h b/spaghetti-monster/fsm-adc.h index 5ffbb73..1b16d01 100644 --- a/spaghetti-monster/fsm-adc.h +++ b/spaghetti-monster/fsm-adc.h @@ -66,11 +66,12 @@ void battcheck(); #ifndef THERM_CAL_OFFSET #define THERM_CAL_OFFSET 0 #endif -// temperature now, in C (ish) +// temperature now, in C (ish) * 2 (14.1 fixed-point) volatile int16_t temperature; -// temperature in a few seconds, in C (ish) * 4 (13.2 fixed-point) +// temperature in a few seconds, in C (ish) * 2 (14.1 fixed-point) volatile int16_t projected_temperature; // Fight the future! -volatile uint8_t therm_ceil = DEFAULT_THERM_CEIL; +uint8_t therm_ceil = DEFAULT_THERM_CEIL; +int8_t therm_cal_offset = 0; //void low_temperature(); //void high_temperature(); volatile uint8_t reset_thermal_history = 1; |
