浏览代码

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;