Shunt timeout

This commit is contained in:
2023-05-31 00:46:49 +02:00
parent bf11004c64
commit 25d6ab2667
2 changed files with 10 additions and 4 deletions

View File

@ -5,8 +5,9 @@
#include "stm32f3xx_hal.h"
#define THRESH_OVERCURRENT 300000 // mA
#define THRESH_OVERTEMP 1000 // 1/10 °C
#define SHUNT_TIMEOUT 300 // ms
#define SHUNT_THRESH_OVERCURRENT 300000 // mA
#define SHUNT_THRESH_OVERTEMP 1000 // 1/10 °C
typedef struct {
int32_t current;