add motor_max_step, move motor_period in table
add first pass of motor control