micrortps_client_main: add status command

This commit is contained in:
Beat Küng 2017-08-02 10:37:08 +02:00 committed by Lorenz Meier
parent 55f65b4aff
commit e7d19f0a1a
1 changed files with 11 additions and 0 deletions

View File

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