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_system": 1,
|
||||||
"target_component": 1,
|
"target_component": 1,
|
||||||
|
|
||||||
# Connection
|
# Connection - SITL listens on TCP 5760 (shown as SERIAL0)
|
||||||
"connection_string": "udpin:127.0.0.1:14550",
|
"connection_string": "tcp:127.0.0.1:5760",
|
||||||
|
|
||||||
# Timeouts (seconds)
|
# Timeouts (seconds)
|
||||||
"heartbeat_timeout": 5.0,
|
"heartbeat_timeout": 5.0,
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ class MAVLinkCommander:
|
|||||||
Provides methods for arming, disarming, mode changes, and flight commands.
|
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.
|
Initialize MAVLink commander.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user