I’ve managed to make automatic Takeoff/Landing without using MAV_CMD_TAKEOFF_LOCAL and MAV_CMD_LAND_LOCAL.
As reported here http://www.gitterforum.com/discussion/mavlink-mavros?page=289, there is an hidden feature in the bitmask field of the SET_POSITION_TARGET_LOCAL_NED message
In Px4 firmware there are 4 undocummented values :
By ORing the bitmask with 0x2000, the UAV automatically landed even if the Z setpoint was 4meters above the ground.
Tested on px4 flightstack v1.4.4