From 618ecb937d2ff6b40d64558548d6617af40b412d Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Tue, 12 Mar 2024 14:31:49 -0600 Subject: wurkkos-ts25-boost: calibrated the battery voltage measurements --- hw/wurkkos/ts25/boost/hwdef.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hw/wurkkos') 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 -- cgit v1.2.3