30 lines
771 B
C
30 lines
771 B
C
#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. */
|
|
|
|
/* 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
|