Attempting to do average for motor control