Andrew Tridgell
7ad8ea017c
autotest: make column ordering in rst gen stable
...
needed for cache of param builds
5 years ago
Peter Barker
691ae58a79
Tools: rename APMrover2 to Rover
5 years ago
Willian Galvani
a1dcb8e3c1
Tools: use html.escape instead of cgi.escape
...
cgi.escape has been deprecated since Python 3.2
https://docs.python.org/3.5/library/cgi.html#cgi.escape
5 years ago
Pierre Kancir
5d299eb584
Tools: add error keyword on param parse for newcomers
5 years ago
Rishabh
c859287310
Tools: param_metadata: check for duplicate enteries in parameter value field
5 years ago
Peter Barker
4c964dd89f
autotest: param_parse.py: allow cr to exist on empty lines in prog_param
...
This should fix parameter building on the Windows CI autotest.
We allow empty lines between @Param blocks and the parameter (and, in
fact, require it before multi-entry @GROUPINFOs like vectors).
The regex wasn't taking into account Windows will have \r\n on that empty
line rather than just \n
5 years ago
Peter Barker
a9f3f9af40
autotest: attempt to fix param-parse crlf issue
5 years ago
Peter Barker
293692cc24
autotest: strip whitespace from parameter attribute values
...
Attempt to fix \r\n issue on Azure cygwin tests
5 years ago
Peter Barker
c4d282f05b
autotest: param_parse.py: whitespace-only line is param block delimiter
...
Several parameters were missing from the documentation because there was
a line with just trailing whitespace immediately after a parameter
metadata block.
Be more lenient.
5 years ago
Peter Barker
5d5f9b77e8
autotest: include AP_Vehicle parameters in documenation
5 years ago
Peter Barker
16f4d33d00
Tools: add known Calibration tag to apm.pdef.xml
...
this will allow a GCS to hide anything that a user should never
ordinarily have to see in terms of calibration parameters
5 years ago
Patrick José Pereira
4518e2b8f2
Tools: Add JSONEmit in param_parse
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
5 years ago
Patrick José Pereira
1a14085a6d
Tools: Add json param metadata parser
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
5 years ago
bnsgeyer
6074b1b7c9
Tools: add RPM to units list
5 years ago
Andrew Tridgell
4b8972433a
Tools: fixed handling of bitmask in param metdata
...
this prevents ARMING_CHECK from getting invalid values for the bitmask
6 years ago
Pierre Kancir
1101cc05e6
Tools: param_parse: update OptionParser to ArgumentParser
6 years ago
Michael du Breuil
bb7abc2935
Tools: Allow specifying parameter metadata format
...
Also removes unneeded passing of a file pointer
6 years ago
Michael du Breuil
681d8416e2
Tools: Add an EDN parameter emitter
6 years ago
Pierre Kancir
4f35992049
Tools: make param_parse.py error more explicit
...
Signed-off-by: Pierre Kancir <pierre.kancir@azurdrones.com>
6 years ago
Peter Barker
27657bfd40
Tools: param_metadata: flake8 compliance
6 years ago
Hamish Willee
329b972845
Tools: param_metadata: Add parser code to include uniq ref from path
6 years ago
Peter Barker
7772279785
Tools: param_parse.py - fix vehicle-specific values
7 years ago
Peter Barker
8fdcd7e1f5
Tools: hide parameter in documentation if no values present
7 years ago
Pierre Kancir
6c43ab27c1
Tools: remove trailling semilocons
7 years ago
Michael du Breuil
177c4c2d44
Tools: Accept mAh as a unit
7 years ago
Tom Pittenger
c59be8bafe
Tools: add "octal" param unit
7 years ago
Peter Barker
cb2e3424ee
Tools: add kilobytes as known unit
7 years ago
Randy Mackay
8186ce0d32
Tools: add deg/s/s to valid parameter units
7 years ago
Peter Barker
dca866c98d
Tools: make parameter generation failure clearer
7 years ago
Peter Barker
338af9e142
Tools: correct misleading comment on per-vehicle parameter descriptions
7 years ago
Peter Barker
5ac5a68d17
Tools: param_parse.py: replace @PREFIX in values with library prefix
7 years ago
Peter Barker
0b4dcdde35
Tools: param_parse.py: allow whitespace between vehicles
...
Also add sanity check that the vehicles you're limitting to we know
about
7 years ago
Peter Barker
d1128e7be4
Tools: param_parse.py: replace comments with debug statements
7 years ago
Peter Barker
eeb15d7fd5
Tools: param_parse.py: make comment consistent
7 years ago
Peter Barker
825832be93
Tools: param_parse.py: add a map for vehicle name to a true-name to be used in code
...
Where true-name is something like "Rover" and the normal name remains
the directory name (e.g. "APMrover2")
7 years ago
Peter Barker
e0125a68e7
Tools: param_parse.py: use single regex for params everywhere
7 years ago
Peter Barker
a45ab6b84c
Tools: param_parse.py: correct example comment
7 years ago
Peter Barker
ea2c156c7f
Tools: param_parse.py: understand tagging of parameters for specific vehicles
7 years ago
Randy Mackay
19af2f7d1d
Tools: add decibel as valid param Unit
7 years ago
Francisco Ferreira
eda5d9265f
Tools: add new no-emit option to param_parse.py so that only validation is done
8 years ago
Michael du Breuil
31924e46d3
Tools: Parameters: Permit kHz as a unit
8 years ago
Jacob Walser
b752594fe5
param_metadata: Markdown parameter formatter
8 years ago
Dr.-Ing. Amilcar Do Carmo Lucas
023e3b6e30
Tools: Add comments explaining why a couple of units are not SI
8 years ago
Dr.-Ing. Amilcar Do Carmo Lucas
02e7c49394
Tools: remove non-ASCII characters in comments, Travis chokes on them
8 years ago
Dr.-Ing. Amilcar Do Carmo Lucas
d7c7deacdf
Tools: Follow SI units conventions
...
http://physics.nist.gov/cuu/Units/units.html
http://physics.nist.gov/cuu/Units/outside.html
and
http://physics.nist.gov/cuu/Units/checklist.html
http://www.bipm.org/en/publications/si-brochure/
http://www1.bipm.org/en/CGPM/db/3/2/ g_n unit for G-force
one further constrain is that only printable (7bit) ASCII characters are allowed
Add a validation so that Travis can validate the units
Use full text unit information when generating .wiki, .rst and .html documentation
Use both unit symbol and unit full text when generating .xml
8 years ago
Andrew Tridgell
496ed18530
autotest: sort libraries by name
8 years ago
Andrew Tridgell
de59f27e14
autotest: fixed parameter generation for recursive libraries
8 years ago
Pierre Kancir
bec09b9a57
autotest: python3 support
8 years ago
Pierre Kancir
63a6b28065
param_metadata: change Ardupilot site to old Ardupilot site
9 years ago
Pierre Kancir
9e1ffcae5d
Tools: update python coding style
...
Tools: update PrintVersion.py coding style
autotest: update python coding style
pysim: update python coding style
jsb_sim: update Python coding style
param_metadata: update Python coding style
9 years ago