mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 02:03:34 +08:00
Rename stop-all to stop for MAVLink, but still keep stop-all for existing scripts
This commit is contained in:
@@ -2398,7 +2398,7 @@ Mavlink::stream_command(int argc, char *argv[])
|
|||||||
|
|
||||||
static void usage()
|
static void usage()
|
||||||
{
|
{
|
||||||
warnx("usage: mavlink {start|stop-all|stream} [-d device] [-u network_port] [-o remote_port] [-t partner_ip] [-b baudrate]\n\t[-r rate][-m mode] [-s stream] [-f] [-p] [-v] [-w] [-x]");
|
warnx("usage: mavlink {start|stop|stream} [-d device] [-u network_port] [-o remote_port] [-t partner_ip] [-b baudrate]\n\t[-r rate][-m mode] [-s stream] [-f] [-p] [-v] [-w] [-x]");
|
||||||
}
|
}
|
||||||
|
|
||||||
int mavlink_main(int argc, char *argv[])
|
int mavlink_main(int argc, char *argv[])
|
||||||
@@ -2416,7 +2416,7 @@ int mavlink_main(int argc, char *argv[])
|
|||||||
usage();
|
usage();
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
} else if (!strcmp(argv[1], "stop-all")) {
|
} else if (!strcmp(argv[1], "stop") || !strcmp(argv[1], "stop-all") ) {
|
||||||
return Mavlink::destroy_all_instances();
|
return Mavlink::destroy_all_instances();
|
||||||
|
|
||||||
} else if (!strcmp(argv[1], "status")) {
|
} else if (!strcmp(argv[1], "status")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user