aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorSelene ToyKeeper2024-03-12 14:31:49 -0600
committerSelene ToyKeeper2024-03-12 14:31:49 -0600
commit618ecb937d2ff6b40d64558548d6617af40b412d (patch)
tree180fb2857fcb09b77ce041e1e3090f8c6522a0eb /hw
parentattiny1616 mcu_vdivider_raw2cooked: factor in the offset, not just slope (diff)
downloadanduril-618ecb937d2ff6b40d64558548d6617af40b412d.tar.gz
anduril-618ecb937d2ff6b40d64558548d6617af40b412d.tar.bz2
anduril-618ecb937d2ff6b40d64558548d6617af40b412d.zip
wurkkos-ts25-boost: calibrated the battery voltage measurements
Diffstat (limited to '')
-rw-r--r--hw/wurkkos/ts25/boost/hwdef.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/wurkkos/ts25/boost/hwdef.h b/hw/wurkkos/ts25/boost/hwdef.h
index 42a4f28..4fd53a2 100644
--- a/hw/wurkkos/ts25/boost/hwdef.h
+++ b/hw/wurkkos/ts25/boost/hwdef.h
@@ -100,8 +100,8 @@ uint8_t ch1_pwm, ch1_dsm;
// estimated / calculated values are:
// (voltage - D1) * (R2/(R2+R1) * 4096 / 1.1)
// Resistors are 330k and 100k
-#define ADC_44 3810 // raw value at 4.40V
-#define ADC_22 1905 // raw value at 2.20V
+#define ADC_44 4274 // raw value at 4.40V
+#define ADC_22 2256 // raw value at 2.20V
// this light has aux LEDs under the optic
#define AUXLED_R_PIN PIN3_bp // pin 3