mirror of https://github.com/ArduPilot/ardupilot
Tools: remove HIL support
This commit is contained in:
parent
db9d41e782
commit
47a778d033
|
@ -248,9 +248,6 @@ GPS_TYPE,1
|
||||||
GPS_TYPE2,0
|
GPS_TYPE2,0
|
||||||
GROUND_STEER_ALT,0
|
GROUND_STEER_ALT,0
|
||||||
GROUND_STEER_DPS,90
|
GROUND_STEER_DPS,90
|
||||||
HIL_ERR_LIMIT,5
|
|
||||||
HIL_MODE,0
|
|
||||||
HIL_SERVOS,0
|
|
||||||
ICE_ENABLE,0
|
ICE_ENABLE,0
|
||||||
INITIAL_MODE,0
|
INITIAL_MODE,0
|
||||||
INS_ACC_BODYFIX,2
|
INS_ACC_BODYFIX,2
|
||||||
|
|
|
@ -767,9 +767,7 @@ def start_mavproxy(opts, stuff):
|
||||||
else:
|
else:
|
||||||
c.extend(["--out", "127.0.0.1:" + str(port)])
|
c.extend(["--out", "127.0.0.1:" + str(port)])
|
||||||
|
|
||||||
if opts.hil:
|
if True:
|
||||||
c.extend(["--load-module", "HIL"])
|
|
||||||
else:
|
|
||||||
if opts.mcast:
|
if opts.mcast:
|
||||||
c.extend(["--master", "mcast:"])
|
c.extend(["--master", "mcast:"])
|
||||||
else:
|
else:
|
||||||
|
@ -832,10 +830,6 @@ parser.add_option("-C", "--sim_vehicle_sh_compatible",
|
||||||
default=False,
|
default=False,
|
||||||
help="be compatible with the way sim_vehicle.sh works; "
|
help="be compatible with the way sim_vehicle.sh works; "
|
||||||
"make this the first option")
|
"make this the first option")
|
||||||
parser.add_option("-H", "--hil",
|
|
||||||
action='store_true',
|
|
||||||
default=False,
|
|
||||||
help="start HIL")
|
|
||||||
|
|
||||||
group_build = optparse.OptionGroup(parser, "Build options")
|
group_build = optparse.OptionGroup(parser, "Build options")
|
||||||
group_build.add_option("-N", "--no-rebuild",
|
group_build.add_option("-N", "--no-rebuild",
|
||||||
|
@ -1118,20 +1112,6 @@ if cmd_opts.sim_vehicle_sh_compatible and cmd_opts.jobs is None:
|
||||||
cmd_opts.jobs = 1
|
cmd_opts.jobs = 1
|
||||||
|
|
||||||
# validate parameters
|
# validate parameters
|
||||||
if cmd_opts.hil:
|
|
||||||
if cmd_opts.valgrind:
|
|
||||||
print("May not use valgrind with hil")
|
|
||||||
sys.exit(1)
|
|
||||||
if cmd_opts.callgrind:
|
|
||||||
print("May not use callgrind with hil")
|
|
||||||
sys.exit(1)
|
|
||||||
if cmd_opts.gdb or cmd_opts.gdb_stopped or cmd_opts.lldb or cmd_opts.lldb_stopped:
|
|
||||||
print("May not use gdb or lldb with hil")
|
|
||||||
sys.exit(1)
|
|
||||||
if cmd_opts.strace:
|
|
||||||
print("May not use strace with hil")
|
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
if cmd_opts.valgrind and (cmd_opts.gdb or cmd_opts.gdb_stopped or cmd_opts.lldb or cmd_opts.lldb_stopped):
|
if cmd_opts.valgrind and (cmd_opts.gdb or cmd_opts.gdb_stopped or cmd_opts.lldb or cmd_opts.lldb_stopped):
|
||||||
print("May not use valgrind with gdb or lldb")
|
print("May not use valgrind with gdb or lldb")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
@ -1226,7 +1206,6 @@ if cmd_opts.instances is not None:
|
||||||
else:
|
else:
|
||||||
instances = range(cmd_opts.instance, cmd_opts.instance + cmd_opts.count)
|
instances = range(cmd_opts.instance, cmd_opts.instance + cmd_opts.count)
|
||||||
|
|
||||||
if not cmd_opts.hil:
|
|
||||||
if cmd_opts.instance == 0:
|
if cmd_opts.instance == 0:
|
||||||
kill_tasks()
|
kill_tasks()
|
||||||
|
|
||||||
|
@ -1275,20 +1254,7 @@ else:
|
||||||
finally:
|
finally:
|
||||||
instance_dir.append(i_dir)
|
instance_dir.append(i_dir)
|
||||||
|
|
||||||
if cmd_opts.hil:
|
if True:
|
||||||
# (unlikely)
|
|
||||||
jsbsim_opts = [
|
|
||||||
os.path.join(autotest_dir,
|
|
||||||
"jsb_sim/runsim.py"),
|
|
||||||
"--speedup=" + str(cmd_opts.speedup)
|
|
||||||
]
|
|
||||||
for i in instances:
|
|
||||||
c = []
|
|
||||||
if spawns is not None:
|
|
||||||
c = ["--home", spawns[i]]
|
|
||||||
run_in_terminal_window("JSBSim", jsbsim_opts + c)
|
|
||||||
|
|
||||||
else:
|
|
||||||
if not cmd_opts.no_rebuild: # i.e. we should rebuild
|
if not cmd_opts.no_rebuild: # i.e. we should rebuild
|
||||||
do_build(cmd_opts, frame_infos)
|
do_build(cmd_opts, frame_infos)
|
||||||
|
|
||||||
|
|
|
@ -106,7 +106,6 @@ To choose a firmware to download you need to choose:
|
||||||
<li>The type of board that you have</li>
|
<li>The type of board that you have</li>
|
||||||
<li>Whether you want the stable, beta or latest version of the
|
<li>Whether you want the stable, beta or latest version of the
|
||||||
firmware</li>
|
firmware</li>
|
||||||
<li>Whether you want a HIL (hardware in the loop) image</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
The meanings of the versions are
|
The meanings of the versions are
|
||||||
|
|
Loading…
Reference in New Issue