jime_r1t
Well-Known Member
- First Name
- Jim
- Joined
- Mar 16, 2023
- Threads
- 5
- Messages
- 49
- Reaction score
- 15
- Location
- Mid-Atlantic
- Vehicles
- R1T
- Thread starter
- #1
I've been tinkering on some code that I eventually want to track driving efficiency and cost data for my R1T. I'm currently polling the API for current mileage and battery charge percentage data along with other data that I'm interested in.
Initially I thought that the Mi/Kwh calculation should be (CurrentMiles - StartingMiles) / ((StartingCharge - CurrentCharge) / 100) * 135kwh. Unfortunately, this results in numbers in the 3 mi / kwh range, which doesn't match whats displayed by the in car efficiency data.
I found another post that talked about needing to double the reported used kwh per hrip to get the numbers to work out. (https://www.rivianforums.com/forum/threads/what-is-the-math-behind-efficiency-calculation.11262/)
I haven't compared any numbers against the reported charge data either, so maybe these numbers will make more sense if I normalize them with charging data. Off the top of my head, I'm thinking kwhPerBatteryPercent = kwhAdded / (chargeEnd - chargeStart).
Thoughts?
Initially I thought that the Mi/Kwh calculation should be (CurrentMiles - StartingMiles) / ((StartingCharge - CurrentCharge) / 100) * 135kwh. Unfortunately, this results in numbers in the 3 mi / kwh range, which doesn't match whats displayed by the in car efficiency data.
I found another post that talked about needing to double the reported used kwh per hrip to get the numbers to work out. (https://www.rivianforums.com/forum/threads/what-is-the-math-behind-efficiency-calculation.11262/)
I haven't compared any numbers against the reported charge data either, so maybe these numbers will make more sense if I normalize them with charging data. Off the top of my head, I'm thinking kwhPerBatteryPercent = kwhAdded / (chargeEnd - chargeStart).
Thoughts?
Sponsored