mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-28 18:30:35 +08:00
enable commander hil option when hils mode
test for merge... recover modification part
This commit is contained in:
@@ -1132,10 +1132,10 @@ int commander_thread_main(int argc, char *argv[])
|
||||
#endif
|
||||
|
||||
if (argc > 2) {
|
||||
if (!strcmp(argv[2],"-hil")) {
|
||||
if (!strcmp(argv[3],"-hil")) {
|
||||
startup_in_hil = true;
|
||||
} else {
|
||||
PX4_ERR("Argument %s not supported.", argv[2]);
|
||||
PX4_ERR("Argument %s not supported.", argv[3]);
|
||||
PX4_ERR("COMMANDER NOT STARTED");
|
||||
thread_should_exit = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user