Programming Drone for auto takeoff and landing

Hi!  I'm using an octocopter with gps and a pixhawk and I am wondering how to do the following.

I want the drone to takeoff at the flip of a switch, and fly to 50 meters and hold its attitude.  And then land when the switch is flipped again.  I don't want any horizontal movement with the drone, just vertical movement.

How can I best achieve this?

Thanks,

Lukas 

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

This reply was deleted.

Activity

Neville Rodrigues liked Neville Rodrigues's profile
Jun 30
Santiago Perez liked Santiago Perez's profile
Jun 21
More…