implemented so motor class returns current and torque and checks for
regen