Autonomous Quadcopter


I started making a quadcopter that will be connected to a laptop using Mission Planner. I am trying to make it so that as soon as it turns on it will get into auto mode and perform the flight plan that comes from Mission Planner. In what way can I program it to do that?

Thanks a lot