mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
autotest: param_parse.py: validate @User field to be Standard or Avanced
This commit is contained in:
parent
7c64f1f685
commit
fdb31a6419
@ -358,6 +358,10 @@ def validate(param):
|
||||
if (hasattr(param, "Units")):
|
||||
if (param.__dict__["Units"] != "") and (param.__dict__["Units"] not in known_units):
|
||||
error("unknown units field '%s'" % param.__dict__["Units"])
|
||||
# Validate User
|
||||
if (hasattr(param, "User")):
|
||||
if param.User.strip() not in ["Standard", "Advanced"]:
|
||||
error("unknown user (%s)" % param.User.strip())
|
||||
|
||||
for vehicle in vehicles:
|
||||
for param in vehicle.params:
|
||||
|
Loading…
Reference in New Issue
Block a user