mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Fix typo error in micrortps_client module
Fixed the typo error in micrortps_client which was causing issue to update baudrate and other options.
This commit is contained in:
parent
1a9e2ac789
commit
b1a16840c7
@ -602,7 +602,7 @@ then
|
||||
if protocol_splitter start ${MAVLINK_COMPANION_DEVICE}
|
||||
then
|
||||
mavlink start -d /dev/mavlink -b 921600 -m onboard -r 5000 -x
|
||||
micrortps_client start -d /dev/rtps -b 0 -l -1 -s 2000
|
||||
micrortps_client start -d /dev/rtps -b 921600 -l -1 -s 2000
|
||||
else
|
||||
mavlink start -d ${MAVLINK_COMPANION_DEVICE} -b 921600 -m onboard -r 80000 -x -f
|
||||
fi
|
||||
|
||||
@ -94,13 +94,13 @@ static int parse_options(int argc, char *argv[])
|
||||
|
||||
case 'w': _options.sleep_ms = strtol(myoptarg, nullptr, 10); break;
|
||||
|
||||
case 'b': _options.baudrate = strtoul(optarg, nullptr, 10); break;
|
||||
case 'b': _options.baudrate = strtoul(myoptarg, nullptr, 10); break;
|
||||
|
||||
case 'p': _options.poll_ms = strtol(optarg, nullptr, 10); break;
|
||||
case 'p': _options.poll_ms = strtol(myoptarg, nullptr, 10); break;
|
||||
|
||||
case 'r': _options.recv_port = strtoul(optarg, nullptr, 10); break;
|
||||
case 'r': _options.recv_port = strtoul(myoptarg, nullptr, 10); break;
|
||||
|
||||
case 's': _options.send_port = strtoul(optarg, nullptr, 10); break;
|
||||
case 's': _options.send_port = strtoul(myoptarg, nullptr, 10); break;
|
||||
|
||||
default:
|
||||
usage(argv[1]);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user