Write commands within the aircraft to control aircraft takeoff and landing

hello now,I want to modify the takeoff mode and then follow the instructions in px4. I gave to land on auto takeoff without GPS. I want to use the mavlink statement but I don’t know how to write it. Which one can give me a way or tell me how to do it. A similar post has also been heard for me, I just want to implement this feature. Thank you