mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
params: fixed parsing of value lists with -1 elements
This commit is contained in:
parent
7a9ef49ea7
commit
5bd88ac3b1
4
Tools/autotest/param_metadata/param_parse.py
Normal file → Executable file
4
Tools/autotest/param_metadata/param_parse.py
Normal file → Executable file
@ -1,3 +1,5 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import os, glob, re
|
||||
|
||||
from param import *
|
||||
@ -13,7 +15,7 @@ prog_groups = re.compile(r"@Group:\s*(\w+).*((?:\n\s*//\s*@(\w+): (.*))+)\s*G",
|
||||
|
||||
prog_group_param = re.compile(r"@Param:\s*(\w+).*((?:\n\s*//\s*@(\w+): (.*))+)\s*AP_", re.MULTILINE)
|
||||
|
||||
prog_values_field = re.compile(r"\s*(\w+:\w+)+,*")
|
||||
prog_values_field = re.compile(r"\s*(-?\w+:\w+)+,*")
|
||||
|
||||
def camelcase_escape(word):
|
||||
if re.match(r"([A-Z][a-z]+[A-Z][a-z]*)", word.strip()):
|
||||
|
Loading…
Reference in New Issue
Block a user