translated motor_control.py from C