add safety contact output
This commit is contained in:
@ -55,6 +55,12 @@ void taskMetrics(void *pvParameters)
|
||||
|
||||
u16MetricCounter = 0U;
|
||||
|
||||
/*Burner Error State*/
|
||||
strcpy(aMetrics[u16MetricCounter].caMetricName, "burner_fault_pending");
|
||||
aMetrics[u16MetricCounter].type = INTEGER_U8;
|
||||
aMetrics[u16MetricCounter].u8MetricValue = getBurnerError();
|
||||
u16MetricCounter++;
|
||||
|
||||
/*Circulation Pump State*/
|
||||
if (getCirculationPumpState() == ENABLED)
|
||||
{
|
||||
@ -71,12 +77,6 @@ void taskMetrics(void *pvParameters)
|
||||
u16MetricCounter++;
|
||||
}
|
||||
|
||||
/*Burner Error State*/
|
||||
strcpy(aMetrics[u16MetricCounter].caMetricName, "burner_fault_pending");
|
||||
aMetrics[u16MetricCounter].type = INTEGER_U8;
|
||||
aMetrics[u16MetricCounter].u8MetricValue = getBurnerError();
|
||||
u16MetricCounter++;
|
||||
|
||||
/*Burner State*/
|
||||
if (getBurnerState() == ENABLED)
|
||||
{
|
||||
@ -93,6 +93,22 @@ void taskMetrics(void *pvParameters)
|
||||
u16MetricCounter++;
|
||||
}
|
||||
|
||||
/*Safety Contact State*/
|
||||
if (getSafetyControlState() == ENABLED)
|
||||
{
|
||||
strcpy(aMetrics[u16MetricCounter].caMetricName, "safety_contact_enabled");
|
||||
aMetrics[u16MetricCounter].type = INTEGER_U8;
|
||||
aMetrics[u16MetricCounter].u8MetricValue = 1U;
|
||||
u16MetricCounter++;
|
||||
}
|
||||
else
|
||||
{
|
||||
strcpy(aMetrics[u16MetricCounter].caMetricName, "safety_contact_enabled");
|
||||
aMetrics[u16MetricCounter].type = INTEGER_U8;
|
||||
aMetrics[u16MetricCounter].u8MetricValue = 0U;
|
||||
u16MetricCounter++;
|
||||
}
|
||||
|
||||
/*Chamber Temperature*/
|
||||
strcpy(aMetrics[u16MetricCounter].caMetricName, "chamber_temperature");
|
||||
aMetrics[u16MetricCounter].type = FLOAT;
|
||||
|
Reference in New Issue
Block a user