We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 029c505 + 5128fdc commit c2a0a94Copy full SHA for c2a0a94
Python Projects/controlling drone using python/listen.py
@@ -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