Skip to content

Commit 46c7e58

Browse files
landing
1 parent 1093f22 commit 46c7e58

File tree

1 file changed

+10
-0
lines changed
  • Python Projects/controlling drone using python

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from pymavlink import mavutil
2+
3+
the_connection=mavutil.mavlink_connection('udpin:localhost:14551')
4+
5+
the_connection.wait_heartbeat()
6+
print("Heartbeat from system (system %u component %u)" %
7+
(the_connection.target_system, the_connection.target_component))
8+
9+
10+
the_connection.mav.command_long_send(the_connection.target_system, the_connection.target_component, mavutil.mavlink.MAV_CMD_NAV_LAND, 0, 0, 0, 0, 0, 0, 0, 0)

0 commit comments

Comments
 (0)