From 5528259517322645ec4e3db84df99840ad5fa81d Mon Sep 17 00:00:00 2001 From: Thomas Kolb Date: Sat, 24 Sep 2022 16:28:35 +0200 Subject: [PATCH] calibration: add development device --- src/calibration.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/calibration.h b/src/calibration.h index e0523cb..c8fbc75 100644 --- a/src/calibration.h +++ b/src/calibration.h @@ -6,10 +6,24 @@ * than the actual voltage, you have to scale by 1.02 and therefore specify * 1020 in this list. */ +/* Values for the device at the B26 tower */ + +#if 0 #define CAL_FACTOR_U_BAT 994 #define CAL_FACTOR_U_SOLAR 997 #define CAL_FACTOR_U_SW 996 #define CAL_FACTOR_I_SOLAR 1015 #define CAL_FACTOR_I_LOAD 1000 +#endif + +/* Values for the development device */ + +#if 1 +#define CAL_FACTOR_U_BAT 1012 +#define CAL_FACTOR_U_SOLAR 1015 +#define CAL_FACTOR_U_SW 1006 +#define CAL_FACTOR_I_SOLAR 3980 +#define CAL_FACTOR_I_LOAD 1000 +#endif #endif // CALIBRATION_H