If you've had this thought, then you've already figured out that it needs to be a bit more nuanced.Dilbert wrote: ↑Thu Feb 04, 2021 5:20 pm Off the throttle seems to be about -100, then when the brake is applied it applies a variable torque proportional to the braking force required.
I have the MG2 speed also from the HTM frame on the same graph, so if we want to mimic how a toyota hybrid drives that should be no problem. I'll post up the full graph. We should also be able to see the MG2 speed that the system will regen down to.
I'm kinda undecided if we should include the gear selection in any algorithm for regen, or just do it like the simple algorithm above, which is based of MG2 direction of travel. I'm thinking if the vehicle rolls back might it correct in the wrong direction![]()

Simple + direction taken into account might be your first pass, but that likely is a minimum. What's the vehicle speed? If it's below a certain value, probably don't want to do anything... That's probably another easy one.
-Matt