fix power calculation

This commit is contained in:
macphyter 2024-02-11 23:05:03 -07:00
parent 33126ca3e5
commit 2b6fae6896

View File

@ -266,7 +266,7 @@ void POWER_MANAGEMENT_HEX_task(void * pvParameters)
power_management->voltage = TPS546_get_vin() * 1000;
power_management->current = TPS546_get_iout();
power_management->current = TPS546_get_iout() * 1000;
// calculate regulator power (in milliwatts)
power_management->power = (TPS546_get_vout() * power_management->current) / 1000;