LNSC-2420-Firmware/src/calibration.h

30 lines
771 B
C
Raw Normal View History

#ifndef CALIBRATION_H
#define CALIBRATION_H
/* All values defined here are divided by 1000 to determine the actual scaling
* factor. Therefore, if the voltage determined by the firmware is 2% lower
* than the actual voltage, you have to scale by 1.02 and therefore specify
* 1020 in this list. */
2022-09-24 16:28:35 +02:00
/* 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
2022-09-24 16:28:35 +02:00
#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