aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSelene ToyKeeper2017-10-06 00:35:08 -0600
committerSelene ToyKeeper2017-10-06 00:35:08 -0600
commit56316ceb551bc807fc1c20a2344a4b09e99e5c4c (patch)
treea1aa3d4a2713214eebd714d27a73c02929a19759
parentMade HOLD_TIMEOUT and RELEASE_TIMEOUT define-able in the UI code. (diff)
downloadanduril-56316ceb551bc807fc1c20a2344a4b09e99e5c4c.tar.gz
anduril-56316ceb551bc807fc1c20a2344a4b09e99e5c4c.tar.bz2
anduril-56316ceb551bc807fc1c20a2344a4b09e99e5c4c.zip
Updated more temperature bits to be 14.1 instead of 13.2.
-rw-r--r--spaghetti-monster/fsm-adc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/spaghetti-monster/fsm-adc.c b/spaghetti-monster/fsm-adc.c
index 5be3061..839fba8 100644
--- a/spaghetti-monster/fsm-adc.c
+++ b/spaghetti-monster/fsm-adc.c
@@ -151,10 +151,10 @@ ISR(ADC_vect) {
for(uint8_t i=0; i<NUM_THERMAL_VALUES; i++)
temperature_values[i] = temp;
for(uint8_t i=0; i<NUM_THERMAL_VALUES_HISTORY; i++)
- temperature_history[i] = temp<<2;
+ temperature_history[i] = temp<<1;
for(uint8_t i=0; i<NUM_THERMAL_PROJECTED_HISTORY; i++)
- projected_temperature_history[i] = temp<<2;
- temperature = temp<<2;
+ projected_temperature_history[i] = temp<<1;
+ temperature = temp<<1;
} else { // update our current temperature estimate
uint8_t i;
int16_t total=0;