Преглед изворни кода

Added Threshold for HOV, SOV and HYSTERESIS

namrota ghosh пре 6 месеци
родитељ
комит
ea5250359d
1 измењених фајлова са 11 додато и 0 уклоњено
  1. 11 0
      src/config.h

+ 11 - 0
src/config.h

@@ -11,6 +11,17 @@
 #define MEASUREMENT_CHECK_INTERVAL 320000 //Do not know yet the exact timing
 #define HEALTHY_BATTERY_VALUE (3800)
 
+// soft overvoltage treshold before getting into the soft overvoltage state
+#define SOV_THRESHOLD_MV 6000
+
+// hard overvoltage treshold for getting into the hard overvoltage state (error)
+#define HOV_THRESHOLD_MV 8000
+
+// define the temperature error state
+#define OVERTEMPERATURE_TRESHOLD 43
+
+#define CONTROLLER_HYSTERESIS 5
+
 typedef struct{
      uint8_t txBuffer[I2C_TX_MAX_PACKET_SIZE];
      uint8_t txLen;