Parcourir la source

Fix coeficients.

Vladimir N. Shilov il y a 11 mois
Parent
commit
e2d3e07cb8
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      inc/board.h

+ 2 - 2
inc/board.h

@@ -19,8 +19,8 @@
 // Supply voltage in mili volts
 #define ADC_VREF  3333UL
 // Сопротивление резисторов делителя входного напряжения
-#define VOLTAGE_MULT_TOP  39300UL
-#define VOLTAGE_MULT_BOT  11000UL
+#define VOLTAGE_MULT_TOP  393UL
+#define VOLTAGE_MULT_BOT  110UL
 #define VOLT_MUL_MUL      100
 #define VOLTAGE_MUL_DIV   (VOLTAGE_MULT_BOT * 1023UL)
 #define VOLTAGE_MUL       (uint16_t)((VOLT_MUL_MUL * ADC_VREF * (VOLTAGE_MULT_TOP+VOLTAGE_MULT_BOT) + (VOLTAGE_MUL_DIV / 2)) / VOLTAGE_MUL_DIV)