mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-08 17:03:57 -04:00
autotest: allow --moddebug to sim_vehicle.py
helps people debugging install
This commit is contained in:
parent
9f5d629503
commit
e9e397f548
@ -720,6 +720,8 @@ def start_mavproxy(opts, stuff):
|
|||||||
cmd.append('--console')
|
cmd.append('--console')
|
||||||
if opts.aircraft is not None:
|
if opts.aircraft is not None:
|
||||||
cmd.extend(['--aircraft', opts.aircraft])
|
cmd.extend(['--aircraft', opts.aircraft])
|
||||||
|
if opts.moddebug:
|
||||||
|
cmd.append('--moddebug=%u' % opts.moddebug)
|
||||||
|
|
||||||
if opts.fresh_params:
|
if opts.fresh_params:
|
||||||
# these were built earlier:
|
# these were built earlier:
|
||||||
@ -979,6 +981,10 @@ group.add_option("", "--console",
|
|||||||
group.add_option("", "--aircraft",
|
group.add_option("", "--aircraft",
|
||||||
default=None,
|
default=None,
|
||||||
help="store state and logs in named directory")
|
help="store state and logs in named directory")
|
||||||
|
group.add_option("", "--moddebug",
|
||||||
|
default=0,
|
||||||
|
type=int,
|
||||||
|
help="mavproxy module debug")
|
||||||
parser.add_option_group(group)
|
parser.add_option_group(group)
|
||||||
|
|
||||||
cmd_opts, cmd_args = parser.parse_args()
|
cmd_opts, cmd_args = parser.parse_args()
|
||||||
|
Loading…
Reference in New Issue
Block a user