Modified the autopilot to read from the planner
small change