Michelle Rossouw
8017e528c8
Tools: Add Blimp to param_parse.py
4 years ago
Peter Barker
b6d5569244
Tools: param_metadata: disallow @Values and @Bitmask at same time
4 years ago
Peter Barker
0a06a9e446
param_metadata: reinstance @Values/@Bitmask magic for excluding params from vehicle output
4 years ago
Peter Barker
eb2b1b3231
Tools: param_meteadata: correct @Values{Plane} etc handling
4 years ago
Peter Barker
c18c4ad6ec
Tools: param_metadata: remove use of dirname when creating Vehicle
...
So a Vehicle object takes a truename - i.e. Copter, not ArduCopter, but
can also take a "reference", which is used for e.g. constructing RST
tags.
4 years ago
Peter Barker
3ea9307419
Tools: param_metadata: flake8 cleanliness
4 years ago
Peter Barker
1123de112c
Tools: param_metadata: tidy finding of Vehicle parameter file
4 years ago
Peter Barker
97e57932c4
Tools: param_metadata: remove more multi-vehicle support
...
This script hasn't supported emitting multiple vehicles for a very long
time, but this was enforced using a check and we kept a list of vehicles
around for no very good reason.
4 years ago
Pierre Kancir
927a875133
Tools: param_parse: fix vehicle specific parameter with multiple fields
4 years ago
Peter Barker
27b6637c2d
Tools: param_parse.py: add support for generation for AP_Periph
4 years ago
Peter Barker
b107740542
Tools: param_parse: add --sitl to emit only SIM_ parameters
4 years ago
Peter Barker
b369e86c0c
Tools: param_parse: remove references to APM in parameter generation
4 years ago
Peter Barker
229b25d916
Tools: param_parse: add *args and **kwargs to emitters
4 years ago
Peter Barker
5a927d84c8
Tools: param_parse: rejig selection of emitters
4 years ago
Peter Barker
5ef5fc9d84
Tools: param_parse: stop generating old .wiki format
4 years ago
Peter Barker
c3414a5767
Tools: param_parse: move init of variable lower
4 years ago
Peter Barker
4c6b07e950
Tools: param_parse: remove support for Parameters.pde
4 years ago
Peter Barker
18ded114ae
Tools: param_metadata; stop prettifying XML before emitting
...
indent is not available on our documentation server:
[build_parameters.py]
Traceback (most recent call last):
File "./param_parse.py", line 422, in <module>
do_emit(XmlEmit())
File "./param_parse.py", line 415, in do_emit
emit.close()
File "/home/wiki/build_wiki/ardupilot/Tools/autotest/param_metadata/xmlemit.py
", line 24, in close
etree.indent(self.paramfile)
AttributeError: module 'lxml.etree' has no attribute 'indent'
4 years ago
Pierre Kancir
ebe841ba70
Tools: param_parse: validate empty description and fields
4 years ago
Pierre Kancir
409177d22a
Tools: remove duplicate kg/m.m
4 years ago
Andrew Tridgell
529bc6b77c
autotest: fixed compatibility with python on wiki server
4 years ago
Pierre Kancir
69fab70582
Tools: use lxml for xml generation
...
fix caracters
fix indentation
validate xml
4 years ago
Iampete1
6f92e6298a
Tools: add Kg/m.m to param units
4 years ago
Dr.-Ing. Amilcar do Carmo Lucas
fb8e1f4b9d
Tools: Added support for 1/s and kg/m/m parameter units
4 years ago
Pierre Kancir
774c8583b1
Tools: make apm.pdef.xml more readable.
4 years ago
Peter Barker
fdb31a6419
autotest: param_parse.py: validate @User field to be Standard or Avanced
4 years ago
Peter Barker
9e148f245b
autotest: param_parse.py: correct parsing of Values fields
...
the regex used to parse the values field later is rather strict - no
spaces allowed around the : for example.
Canonicalise the string before trying to do anything more with it
(including validation)
4 years ago
bugobliterator
c02c500ac5
param_metadata: add microseconds under known param type
5 years ago
Pierre Kancir
4930142b6e
Tools: add generator for MP parameter xml
5 years ago
murata
2e69317c2c
Tools: Change the unit of barometric pressure from mbar to hPa.
5 years ago
Peter Barker
d1170db4bf
Tools: allow parameters to be specified on a per-vehicle basis
5 years ago
Iampete1
579227d27a
Tools: param.py add MB
5 years ago
Peter Barker
ffaa60b9ed
autotest: stop emitting duplicate rangefinder headings
...
This was only an issue for the Wasp rangefinder block, which drops stuff
in at the top level by specifying the same subgroup name as the top
level.
5 years ago
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