Different factor to read solar voltage between HW0.7 and HW0.10

This commit is contained in:
Ollo 2024-03-28 20:37:19 +01:00
parent 9c4e747b50
commit 7494f9de51

View File

@ -122,11 +122,12 @@
#define FIRMWARE_BASENAME "PlantControl"
#define FIRMWARE_NAME FIRMWARE_BASENAME FIRMWARE_FEATURE1 FIRMWARE_FEATURE2
#define FIRMWARE_VERSIONNMUMBER "3.001"
#ifdef HWREVISION07
#define FIRMWARE_VERSION "3.01 HW0.7"
#define FIRMWARE_VERSION FIRMWARE_VERSIONNMUMBER " HW0.7"
#else
#define FIRMWARE_VERSION "3.01 HW0.10b"
#define FIRMWARE_VERSION FIRMWARE_VERSIONNMUMBER " HW0.10b"
#endif
#define MOIST_SENSOR_MAX_FRQ 5200 // 60kHz (500Hz margin)
@ -135,7 +136,11 @@
#define ANALOG_SENSOR_MAX_MV 1300 //successive approximation of good range
#define ANALOG_SENSOR_MIN_MV 100 //successive approximation of good range
#define SOLAR_VOLT_FACTOR 11
#ifdef HWREVISION07
#define SOLAR_VOLT_FACTOR (4.0306f) /**< 100k and 33k voltage dividor */
#else
#define SOLAR_VOLT_FACTOR 11f
#endif
#define BATTSENSOR_INDEX_SOLAR 0
#define BATTSENSOR_INDEX_BATTERY 1