updated motor control