fix: Update MAVLink connection string from UDP to TCP for SITL.
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user