If you have a companion computer onboard, you can make programs there and let it control your vehicle.
You may have a look at pymavlink, mavproxy, and dronekit.
They all send mavlink command through serial port to the controller. In this case you can even bypass mission planner.