by numpad0 · 1y ago · 0 comments
Every other EVs and HVs assign first half of brake pedal for regen and bottom half for mechanical brakes. Tesla uses bottom half of gas pedal for the same, which eliminates the need to accurately determine the appropriate pedal force that corresponds to intended braking force to be added up with regen to match intended deceleration. Mapping regen to gas is `set_motor_torque(1.25 * gas_pedal - 25);` and that's much simpler.