Since then, I got a development environment set up with remarkably
little trouble, and I've been adding some new metrics for the Nissan Leaf:
* ms_v_bat_soh from 0x5b3[1]
* ms_v_charge_temp from 0x54f[0] (this is actually inside temp)
* ms_v_door_fl etc. from 0x60d[0]
* ms_v_env_gear from 0x421[0]
* ms_v_env_handbrake from 0x5c5[0] (was faked by vehicle_nissanleaf_car_on)
* ms_v_env_headlights from 0x60d[0,1]
* ms_v_env_on from 0x60d[1] (was faked by vehicle_nissanleaf_car_on)
...but continue to fake ms_v_env_awake by CAN activity of 0x284
* ms_v_env_locked from 0x60d[2]
* ms_v_inv_temp from 0x510[7]
* ms_v_tpms_fl_p etc. from 0x385[2..5]
These all seem to be working nicely (at least, on my UK MY2015).
I have a few questions:
I would like to record the temperature inside the car, but I couldn't
see an appropriate metric (I've stuck it on ms_v_charge_temp for now).
Is there a better place for it?
What is the intent of ms_v_env_on? It was previously set true when
certain CAN traffic was present and false after a period of inactivity.
I now set it to true when the car is in state "ready to drive".
A similar question goes for ms_v_env_awake. I've left this doing the
CAN activity detection, which means it changes for minor things like
detecting a key-fob.
What is the process for contributing changes? I am currently doing my local work on the master branch cloned from github.