mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-20 11:23:06 +08:00
enable commander hil option when hils mode
test for merge... recover modification part
This commit is contained in:
@@ -330,7 +330,12 @@ then
|
||||
sh /etc/init.d/rc.sensors
|
||||
|
||||
# Needs to be this early for in-air-restarts
|
||||
commander start
|
||||
if [ $OUTPUT_MODE == hil ]
|
||||
then
|
||||
commander start -hil
|
||||
else
|
||||
commander start
|
||||
fi
|
||||
|
||||
#
|
||||
# Start primary output
|
||||
|
||||
@@ -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