jpasqua / VisibleTesla

Java App to monitor and Control the Tesla Model S
125 stars 41 forks source link

Charge anomaly detection can be confused by shore power use #104

Closed jpasqua closed 9 years ago

jpasqua commented 9 years ago

There are times when the car is plugged in and pulling power, but not charging. For example, if you are plugged in and your remotely activate the heat, it will pull power from the wall. This can confuse the anomaly detection code because the profile of power use seems odd.

The anomaly detection code needs to distinguish this case.

jpasqua commented 9 years ago

During a normal charge cycle, power usually correlates to V*C as expected. It appears that during shore power sessions the power is effectively 0. I can use that as an indicator that we’re not really charging and therefore the charge deviation tests should not apply. I’ll add the code. It will also confirm the charge state.

jpasqua commented 9 years ago

Fix (as described above) is in.