aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster/fsm-adc.h
diff options
context:
space:
mode:
authorSelene ToyKeeper2017-09-22 07:22:16 -0600
committerSelene ToyKeeper2017-09-22 07:22:16 -0600
commite4634255795f04a1d859aa691fbc6e729973b14d (patch)
tree40ee093fecb61ea6907cbb3abc50495b55293eed /spaghetti-monster/fsm-adc.h
parentAdded FW3A driver support to FSM and Anduril. (diff)
downloadanduril-e4634255795f04a1d859aa691fbc6e729973b14d.tar.gz
anduril-e4634255795f04a1d859aa691fbc6e729973b14d.tar.bz2
anduril-e4634255795f04a1d859aa691fbc6e729973b14d.zip
Slightly increased resolution of VOLTAGE_FUDGE_FACTOR.
My lights seemed to measure just a bit low, so hopefully this will help. It bumps up reported values by 0.05V.
Diffstat (limited to 'spaghetti-monster/fsm-adc.h')
-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 2a7c26d..b9462f7 100644
--- a/spaghetti-monster/fsm-adc.h
+++ b/spaghetti-monster/fsm-adc.h
@@ -30,9 +30,9 @@
#ifndef VOLTAGE_LOW
#define VOLTAGE_LOW 29
#endif
-// MCU sees voltage 0.X volts lower than actual, add X to readings
+// MCU sees voltage 0.X volts lower than actual, add X/2 to readings
#ifndef VOLTAGE_FUDGE_FACTOR
-#define VOLTAGE_FUDGE_FACTOR 2
+#define VOLTAGE_FUDGE_FACTOR 5
#endif
volatile uint8_t voltage;
void low_voltage();