Skip to content

Commit c2a0a94

Browse files
authored
Merge pull request #51 from sudhanshuprasad/main
controlling drone using mavlink
2 parents 029c505 + 5128fdc commit c2a0a94

File tree

1 file changed

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

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from pymavlink import mavutil
2+
3+
the_connection=mavutil.mavlink_connection('udpin:localhost:14550')
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+
while True:
10+
message=the_connection.recv_match(blocking=True)
11+
print(message)

0 commit comments

Comments
 (0)