fix: Update MAVLink connection string from UDP to TCP for SITL.

This commit is contained in:
2026-01-07 20:21:56 +00:00
parent ee716f7bd5
commit 528ec1e61f
2 changed files with 3 additions and 3 deletions

View File

@@ -156,8 +156,8 @@ MAVLINK = {
"target_system": 1,
"target_component": 1,
# Connection
"connection_string": "udpin:127.0.0.1:14550",
# Connection - SITL listens on TCP 5760 (shown as SERIAL0)
"connection_string": "tcp:127.0.0.1:5760",
# Timeouts (seconds)
"heartbeat_timeout": 5.0,

View File

@@ -64,7 +64,7 @@ class MAVLinkCommander:
Provides methods for arming, disarming, mode changes, and flight commands.
"""
def __init__(self, connection_string: str = "udpin:127.0.0.1:14550"):
def __init__(self, connection_string: str = "tcp:127.0.0.1:5760"):
"""
Initialize MAVLink commander.