Master_Interface/Core/Src/Check_Shunt_Limits.c

25 lines
473 B
C
Raw Normal View History

2022-07-03 17:33:09 +02:00
/*
* Check_Shunt_Limits.c
*
* Created on: Jun 16, 2022
* Author: max
*/
#include "Check_Shunt_Limits.h"
void CheckShuntLimits() {
uint32_t tick = HAL_GetTick();
if (((shuntlastmessage + SHUNT_TIMEOUT) < HAL_GetTick()) &&
(HAL_GetTick() > 2000)) {
AMS_Error_Handler(0x06);
}
/*if(shuntcurrent > SHUNT_OVERCURRENT)
{
AMS_Error_Handler(0x07);
}
if(shuntbusbartemp > SHUNT_OVERTEMP)
{
AMS_Error_Handler(0x08);
}*/
}