TickTock
Well-known member
Working on a new *calibrated* braking guage (previously was just qualitative since I didn't know the scalars to convert to kW). I am implementing the following power formulas based on empirical data from my logs (all have units of kW):
availableRegen = cc260.1 * 1
motorkW = cc180.23 * cc176.23 * 0.0000345
targetBraking = cc1cb.23 * cc176.23 * 0.0000345 (noticed that the targetBraking message seems to have units equivalent to motor amps(torque))
appliedRegen = cc1d5.01 * cc176.23 * 0.00002875 (targetBraking scaler divided by 1.2)
friction = cc292.6 * cc176.23 * 0.0019 (this is the energy being expended in kW in the mechanical brakes - at least what the Leaf seems to think)
Here an example stop with the above scalars applied (Y axis is kW). AppliedRegen appears to have a slight lag over the actual power into the battery but otherwise these track pretty well (here as well as the rest of the log - zooming into one for clarity). In this example, it looks like I was "coasting" in ECO at the beginning (foot off both pedals so was getting the ECO regen equal to the available regen), then applied the brake after briefly touching the accel.
availableRegen = cc260.1 * 1
motorkW = cc180.23 * cc176.23 * 0.0000345
targetBraking = cc1cb.23 * cc176.23 * 0.0000345 (noticed that the targetBraking message seems to have units equivalent to motor amps(torque))
appliedRegen = cc1d5.01 * cc176.23 * 0.00002875 (targetBraking scaler divided by 1.2)
friction = cc292.6 * cc176.23 * 0.0019 (this is the energy being expended in kW in the mechanical brakes - at least what the Leaf seems to think)
Here an example stop with the above scalars applied (Y axis is kW). AppliedRegen appears to have a slight lag over the actual power into the battery but otherwise these track pretty well (here as well as the rest of the log - zooming into one for clarity). In this example, it looks like I was "coasting" in ECO at the beginning (foot off both pedals so was getting the ECO regen equal to the available regen), then applied the brake after briefly touching the accel.