call frontendInit later, however, still not working correctly
This commit is contained in:
@ -21,9 +21,9 @@ static volatile bool frontendEnabled = false;
|
||||
|
||||
|
||||
void frontendInit() {
|
||||
double u_threshold = I_THRESHOLD * SHUNT_RESISTOR;
|
||||
frontendAdcThreshold = (uint16_t) (u_threshold / U_REF * ((double) N_MAX));
|
||||
logMsg("frontendInit, threshold calculated: %d", frontendAdcThreshold);
|
||||
// double u_threshold = I_THRESHOLD * SHUNT_RESISTOR;
|
||||
// frontendAdcThreshold = (uint16_t) (u_threshold / U_REF * ((double) N_MAX));
|
||||
// logMsg("frontendInit, threshold calculated: %d", frontendAdcThreshold);
|
||||
|
||||
HAL_ADCEx_Calibration_Start(&frontendAdc);
|
||||
logMsg("frontendInit, calibration done");
|
||||
|
Reference in New Issue
Block a user