@ -282,6 +282,7 @@ extra_mavlink_cmds: extra parameters that will be passed to mavproxy
@@ -282,6 +282,7 @@ extra_mavlink_cmds: extra parameters that will be passed to mavproxy
"you are simulating, for example, start in the ArduPlane directory to " \
"simulate ArduPlane")
parser.add_option("-v","--vehicle",type='choice',default=None,help="vehicle type (%s)"%vehicle_options_string,choices=default_frame_for_vehicle.keys())
parser.add_option("-v","--vehicle",type='choice',default=None,help="vehicle type (%s)"%vehicle_options_string,choices=_options.keys())
parser.add_option("-f","--frame",type='string',default=None,help="""set vehicle frame type
%s"""% (generate_frame_help()))
@ -909,20 +904,20 @@ if cmd_opts.vehicle is None:
@@ -909,20 +904,20 @@ if cmd_opts.vehicle is None:
cwd=os.getcwd()
cmd_opts.vehicle=os.path.basename(cwd)
ifcmd_opts.vehiclenotindefault_frame_for_vehicle:
ifcmd_opts.vehiclenotin_options:
# try in parent directories, useful for having config in subdirectories
cwd=os.getcwd()
whilecwd:
bname=os.path.basename(cwd)
ifnotbname:
break
ifbnameindefault_frame_for_vehicle:
ifbnamein_options:
cmd_opts.vehicle=bname
break
cwd=os.path.dirname(cwd)
# try to validate vehicle
ifcmd_opts.vehiclenotindefault_frame_for_vehicle:
ifcmd_opts.vehiclenotin_options:
progress('''
**Is(%s)reallyyourvehicletype?
Perhapsyoucouldtry-v%s
@ -932,7 +927,7 @@ You could also try changing directory to e.g. the ArduCopter subdirectory
@@ -932,7 +927,7 @@ You could also try changing directory to e.g. the ArduCopter subdirectory
# determine frame options (e.g. build type might be "sitl")