In my code, I tried to arm the Intel Drone and then takeoff. But the drone arms, and then QGC says takeoff denied, disarmed by auto disarm on land. Why is that? Did I set some parameters wrong in the QGC?
Here is the part of the code:
armService = rospy.ServiceProxy('/mavros/cmd/arming', mavros_msgs.srv.CommandBool)
takeoffService = rospy.ServiceProxy('/mavros/cmd/takeoff', mavros_msgs.srv.CommandTOL)
takingoff=takeoffService(altitude=1, latitude=0, longitude=0, min_pitch=0, yaw=0)