mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-18 09:57:35 +08:00
micrortps_client_main: add status command
This commit is contained in:
@@ -191,6 +191,17 @@ int micrortps_client_main(int argc, char *argv[])
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!strcmp(argv[1], "status")) {
|
||||
if (_rtps_task == -1) {
|
||||
PX4_INFO("Not running");
|
||||
|
||||
} else {
|
||||
PX4_INFO("Running");
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!strcmp(argv[1], "stop")) {
|
||||
if (_rtps_task == -1) {
|
||||
PX4_INFO("Not running");
|
||||
|
||||
Reference in New Issue
Block a user