by short-circuit or resistive braking