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:
Avinash Reddy Palleti 2017-12-01 16:43:11 +05:30 committed by Beat Küng
parent 1a9e2ac789
commit b1a16840c7
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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]);