1. Ensure the sign is correct based on the hardware in HAL_readAdcData() in hal.h. 2. Check if the scaling values of current&voltage are set correctly (USER_ADC_FULL_SCALE_VOLTAGE_V, USER_ADC_FULL_SCALE_CURRENT_A) according to the hardware. 3. Use lab01c to verify the signal chain integrity on hardware, check if the currents and voltages are sensed correctly and the order of both groups signal are match.
↧