set safe state if system fault detected
This commit is contained in:
parent
357608b30a
commit
1dbab68f1d
@ -58,6 +58,12 @@ void taskSafety(void *pvParameters)
|
|||||||
{
|
{
|
||||||
|
|
||||||
checkSensorSanity();
|
checkSensorSanity();
|
||||||
|
|
||||||
|
if (sSafetyState != SAFETY_NO_ERROR)
|
||||||
|
{
|
||||||
|
setSafeState();
|
||||||
|
}
|
||||||
|
|
||||||
xSemaphoreGiveRecursive(xMutexAccessSafety);
|
xSemaphoreGiveRecursive(xMutexAccessSafety);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -122,8 +128,8 @@ void checkSensorSanity(void)
|
|||||||
|
|
||||||
void setSafeState(void)
|
void setSafeState(void)
|
||||||
{
|
{
|
||||||
setCirculationPumpState(DISABLED);
|
setCirculationPumpState(ENABLED); // To cool down system
|
||||||
setBurnerState(DISABLED);
|
setBurnerState(DISABLED); // Deactivate burner
|
||||||
}
|
}
|
||||||
|
|
||||||
void getSensorSanityStates(sSensorSanityCheck *pSensorSanityChecks)
|
void getSensorSanityStates(sSensorSanityCheck *pSensorSanityChecks)
|
||||||
|
Loading…
Reference in New Issue
Block a user