autotest: sim_vehicle.py: accept lower-case plane etc for --vehicle

This commit is contained in:
Peter Barker 2021-12-19 09:23:32 +11:00 committed by Andrew Tridgell
parent 80c7c9f16a
commit 8527fd42d1
1 changed files with 6 additions and 0 deletions

View File

@ -876,6 +876,9 @@ vehicle_choices.append("APMrover2")
vehicle_choices.append("Copter") # should change to ArduCopter at some stage
vehicle_choices.append("Plane") # should change to ArduPlane at some stage
vehicle_choices.append("Sub") # should change to Sub at some stage
vehicle_choices.append("copter") # should change to ArduCopter at some stage
vehicle_choices.append("plane") # should change to ArduPlane at some stage
vehicle_choices.append("sub") # should change to Sub at some stage
parser.add_option("-v", "--vehicle",
type='choice',
@ -1272,6 +1275,9 @@ vehicle_map = {
"Copter": "ArduCopter", # will switch eventually
"Plane": "ArduPlane", # will switch eventually
"Sub": "ArduSub", # will switch eventually
"copter": "ArduCopter", # will switch eventually
"plane": "ArduPlane", # will switch eventually
"sub": "ArduSub", # will switch eventually
}
if cmd_opts.vehicle in vehicle_map:
progress("%s is now known as %s" %