I’m trying to run a basic gazebo simulation with Pymavlink and px4 autopilot. The intention is to make the drone send a heartbeat message, arm and take off. However right after arming, it just stays in one place for several seconds rather than take off at a particular defined altitude. The code looks fairly straightforward but I am new to the software side of Drone development so any help would be great.
This forum is focused on marine robotics - I expect you’re after the general ArduPilot forum, which is particularly relevant once you start getting into drone/aerial-specific functionality like automatically taking off to a particular altitude (ROVs/AUVs tend to chill at the water surface until you command them to go elsewhere, and we don’t tend to use the TAKEOFF command).
Note that master.wait_heartbeat() waits for a heartbeat from the vehicle. To send a HEARTBEAT message requires master.mav.heartbeat_send(...)