Dynamic electric resistor braking, combined with dynamic electric regenerative braking