Skip to content

Commit

Permalink
Decimal fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dalathegreat committed Jan 2, 2024
1 parent 6d6cca1 commit 6b06132
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Software/src/battery/TESLA-MODEL-3-BATTERY.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ void update_values_tesla_model_3_battery() { //This function maps all the value
max_target_charge_power = MAXCHARGEPOWERALLOWED;
}

power = (volts * amps);
power = ((volts / 10) * amps);
stat_batt_power = convert2unsignedInt16(power);

min_temp = (min_temp * 10);
Expand Down

0 comments on commit 6b06132

Please sign in to comment.