Tools/ros2: remove forwarding of deprecated --uartX options

This commit is contained in:
Thomas Watson 2024-04-06 10:00:34 -05:00 committed by Andrew Tridgell
parent d2456f4199
commit 3d4490b339
1 changed files with 1 additions and 20 deletions

View File

@ -386,8 +386,6 @@ class MAVProxyLaunch:
class SITLLaunch: class SITLLaunch:
"""Launch functions for ArduPilot SITL.""" """Launch functions for ArduPilot SITL."""
# Labels for the optional uart launch arguments.
UART_LABELS = ["A", "B", "C", "D", "E", "F", "H", "I", "J"]
MAX_SERIAL_PORTS = 10 MAX_SERIAL_PORTS = 10
@staticmethod @staticmethod
@ -438,13 +436,6 @@ class SITLLaunch:
cmd_args.append(f"--home {home} ") cmd_args.append(f"--home {home} ")
print(f"home: {home}") print(f"home: {home}")
# Optional uart arguments.
for label in SITLLaunch.UART_LABELS:
arg = LaunchConfiguration(f"uart{label}").perform(context)
if arg:
cmd_args.append(f"--uart{label} {arg} ")
print(f"uart{label}: {arg}")
# Optional serial arguments. # Optional serial arguments.
for label in range(10): for label in range(10):
arg = LaunchConfiguration(f"serial{label}").perform(context) arg = LaunchConfiguration(f"serial{label}").perform(context)
@ -651,16 +642,6 @@ class SITLLaunch:
), ),
] ]
# UART launch arguments.
uart_args = []
for label in SITLLaunch.UART_LABELS:
arg = DeclareLaunchArgument(
f"uart{label}",
default_value="",
description=f"set device string for UART{label}.",
)
uart_args.append(arg)
# Serial launch arguments. # Serial launch arguments.
serial_args = [] serial_args = []
for label in range(SITLLaunch.MAX_SERIAL_PORTS): for label in range(SITLLaunch.MAX_SERIAL_PORTS):
@ -671,4 +652,4 @@ class SITLLaunch:
) )
serial_args.append(arg) serial_args.append(arg)
return launch_args + uart_args + serial_args return launch_args + serial_args