Skip to content

Commit 757980c

Browse files
committed
receiver listens to all
1 parent c8f816b commit 757980c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/offboard_from_stream/receiver.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,12 @@ async def main():
7676
UDP_IP = "0.0.0.0"
7777
UDP_PORT = 5005
7878
BUFFER_SIZE = 1024 # Adjust based on expected packet size
79+
PX4_MAVLINK_NODE = "udp://:14540"
80+
7981

8082
async def setup_drone():
8183
drone = System()
82-
await drone.connect(system_address="udp://:14540")
84+
await drone.connect(system_address=PX4_MAVLINK_NODE)
8385

8486
print("Waiting for drone to connect...")
8587
async for state in drone.core.connection_state():

0 commit comments

Comments
 (0)