mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 02:16:53 +08:00
microRTPS: agent: add missing 'g' option
This commit is contained in:
@@ -124,7 +124,7 @@ static void usage(const char *name)
|
|||||||
" -b <baudrate> UART device baudrate. Defaults to 460800\n"
|
" -b <baudrate> UART device baudrate. Defaults to 460800\n"
|
||||||
" -d <device> UART device. Defaults to /dev/ttyACM0\n"
|
" -d <device> UART device. Defaults to /dev/ttyACM0\n"
|
||||||
" -f <sw-flow-control> Activates UART link SW flow control\n"
|
" -f <sw-flow-control> Activates UART link SW flow control\n"
|
||||||
" -h <hw-flow-control> Activates UART link HW flow control\n"
|
" -g <hw-flow-control> Activates UART link HW flow control\n"
|
||||||
" -i <ip-address> Target remote IP address for UDP. Defaults to 127.0.0.1\n"
|
" -i <ip-address> Target remote IP address for UDP. Defaults to 127.0.0.1\n"
|
||||||
" -n <namespace> Topics namespace. Identifies the vehicle in a multi-agent network\n"
|
" -n <namespace> Topics namespace. Identifies the vehicle in a multi-agent network\n"
|
||||||
" -o <poll-ms> UART polling timeout in milliseconds. Defaults to 1ms\n"
|
" -o <poll-ms> UART polling timeout in milliseconds. Defaults to 1ms\n"
|
||||||
@@ -161,7 +161,7 @@ static int parse_options(int argc, char **argv)
|
|||||||
|
|
||||||
int ch;
|
int ch;
|
||||||
|
|
||||||
while ((ch = getopt_long(argc, argv, "t:d:w:b:o:r:s:i:fhvn:", options, nullptr)) >= 0) {
|
while ((ch = getopt_long(argc, argv, "t:d:w:b:o:r:s:i:fghvn:", options, nullptr)) >= 0) {
|
||||||
switch (ch) {
|
switch (ch) {
|
||||||
case 't': _options.transport = strcmp(optarg, "UDP") == 0 ?
|
case 't': _options.transport = strcmp(optarg, "UDP") == 0 ?
|
||||||
options::eTransports::UDP
|
options::eTransports::UDP
|
||||||
|
|||||||
Reference in New Issue
Block a user