added logic for pocket mode get_position using average to find home