forked from Archive/PX4-Autopilot
enable commander hil option when hils mode
test for merge... recover modification part
This commit is contained in:
parent
98443e8712
commit
717c90eab4
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue