Skip to content

Commit

Permalink
Merge pull request #93 from dalathegreat/bugfix/tesla-current
Browse files Browse the repository at this point in the history
Tesla: Increase decimal on Amperage value
  • Loading branch information
dalathegreat authored Nov 13, 2023
2 parents 8bab9c5 + e519baf commit 271fc87
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 @@ -177,7 +177,7 @@ void update_values_tesla_model_3_battery() { //This function maps all the value

battery_voltage = (volts * 10); //One more decimal needed (370 -> 3700)

battery_current = amps; //TODO, this needs verifying if scaling is right
battery_current = (amps * 10); //Increase decimal (13A -> 13.0A)

capacity_Wh = (nominal_full_pack_energy * 100); //Scale up 75.2kWh -> 75200Wh
if (capacity_Wh > 60000) {
Expand Down

0 comments on commit 271fc87

Please sign in to comment.