This function reads the momentary motor current draw and checks the value for a warning condition.
Definition at line 152 of file current.c. References ADC_CURRENT, adc_Read(), COND_CURR_WARN, MAX_CURRENT, mg_u16Value, safety_ClearCondition(), and safety_SetCondition(). Referenced by main(). {
mg_u16Value = adc_Read(ADC_CURRENT);
if(mg_u16Value > MAX_CURRENT)
{
safety_SetCondition(COND_CURR_WARN);
}
else
{
safety_ClearCondition(COND_CURR_WARN);
}
}
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]() |
1.7.2