Installing DC injection braking for AC motor