|
|
|
@ -223,22 +223,22 @@ def run_step(step):
@@ -223,22 +223,22 @@ def run_step(step):
|
|
|
|
|
return get_default_params(vehicle, binary) |
|
|
|
|
|
|
|
|
|
if step == 'fly.ArduCopter': |
|
|
|
|
return arducopter.fly_ArduCopter(binary, viewerip=opts.viewerip, use_map=opts.map, valgrind=opts.valgrind, gdb=opts.gdb, frame=opts.frame) |
|
|
|
|
return arducopter.fly_ArduCopter(binary, viewerip=opts.viewerip, use_map=opts.map, valgrind=opts.valgrind, gdb=opts.gdb, frame=opts.frame, gdbserver=opts.gdbserver) |
|
|
|
|
|
|
|
|
|
if step == 'fly.CopterAVC': |
|
|
|
|
return arducopter.fly_CopterAVC(binary, viewerip=opts.viewerip, use_map=opts.map, valgrind=opts.valgrind, gdb=opts.gdb, frame=opts.frame) |
|
|
|
|
return arducopter.fly_CopterAVC(binary, viewerip=opts.viewerip, use_map=opts.map, valgrind=opts.valgrind, gdb=opts.gdb, frame=opts.frame, gdbserver=opts.gdbserver) |
|
|
|
|
|
|
|
|
|
if step == 'fly.ArduPlane': |
|
|
|
|
return arduplane.fly_ArduPlane(binary, viewerip=opts.viewerip, use_map=opts.map, valgrind=opts.valgrind, gdb=opts.gdb) |
|
|
|
|
return arduplane.fly_ArduPlane(binary, viewerip=opts.viewerip, use_map=opts.map, valgrind=opts.valgrind, gdb=opts.gdb, gdbserver=opts.gdbserver) |
|
|
|
|
|
|
|
|
|
if step == 'fly.QuadPlane': |
|
|
|
|
return quadplane.fly_QuadPlane(binary, viewerip=opts.viewerip, use_map=opts.map, valgrind=opts.valgrind, gdb=opts.gdb) |
|
|
|
|
return quadplane.fly_QuadPlane(binary, viewerip=opts.viewerip, use_map=opts.map, valgrind=opts.valgrind, gdb=opts.gdb, gdbserver=opts.gdbserver) |
|
|
|
|
|
|
|
|
|
if step == 'drive.APMrover2': |
|
|
|
|
return apmrover2.drive_APMrover2(binary, viewerip=opts.viewerip, use_map=opts.map, valgrind=opts.valgrind, gdb=opts.gdb, frame=opts.frame) |
|
|
|
|
return apmrover2.drive_APMrover2(binary, viewerip=opts.viewerip, use_map=opts.map, valgrind=opts.valgrind, gdb=opts.gdb, frame=opts.frame, gdbserver=opts.gdbserver) |
|
|
|
|
|
|
|
|
|
if step == 'dive.ArduSub': |
|
|
|
|
return ardusub.dive_ArduSub(binary, viewerip=opts.viewerip, use_map=opts.map, valgrind=opts.valgrind, gdb=opts.gdb) |
|
|
|
|
return ardusub.dive_ArduSub(binary, viewerip=opts.viewerip, use_map=opts.map, valgrind=opts.valgrind, gdb=opts.gdb, gdbserver=opts.gdbserver) |
|
|
|
|
|
|
|
|
|
if step == 'build.All': |
|
|
|
|
return build_all() |
|
|
|
@ -449,6 +449,7 @@ if __name__ == "__main__":
@@ -449,6 +449,7 @@ if __name__ == "__main__":
|
|
|
|
|
parser.add_option("--debug", default=False, action='store_true', help='make built binaries debug binaries') |
|
|
|
|
parser.add_option("-j", default=None, type='int', help='build CPUs') |
|
|
|
|
parser.add_option("--frame", type='string', default=None, help='specify frame type') |
|
|
|
|
parser.add_option("--gdbserver", default=False, action='store_true', help='run ArduPilot binaries under gdbserver') |
|
|
|
|
|
|
|
|
|
opts, args = parser.parse_args() |
|
|
|
|
|
|
|
|
|