Commit Graph

98 Commits

Author SHA1 Message Date
Andrew Tridgell 529bc6b77c autotest: fixed compatibility with python on wiki server 2021-01-02 16:34:29 +11:00
Pierre Kancir 69fab70582 Tools: use lxml for xml generation
fix caracters
fix indentation
validate xml
2020-12-30 18:19:43 +11:00
Iampete1 6f92e6298a Tools: add Kg/m.m to param units 2020-12-22 11:00:59 +11:00
Dr.-Ing. Amilcar do Carmo Lucas fb8e1f4b9d Tools: Added support for 1/s and kg/m/m parameter units 2020-12-15 18:22:36 +11:00
Pierre Kancir 774c8583b1 Tools: make apm.pdef.xml more readable. 2020-10-07 19:38:14 +11:00
Peter Barker fdb31a6419 autotest: param_parse.py: validate @User field to be Standard or Avanced 2020-09-22 14:56:04 +10:00
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)
2020-09-15 11:09:52 +10:00
bugobliterator c02c500ac5 param_metadata: add microseconds under known param type 2020-08-19 17:31:09 +10:00
Pierre Kancir 4930142b6e Tools: add generator for MP parameter xml 2020-08-05 22:32:33 +10:00
murata 2e69317c2c Tools: Change the unit of barometric pressure from mbar to hPa. 2020-07-21 09:56:21 +10:00
Peter Barker d1170db4bf Tools: allow parameters to be specified on a per-vehicle basis 2020-06-16 11:21:47 +10:00
Iampete1 579227d27a Tools: param.py add MB 2020-06-09 09:23:25 +10:00
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.
2020-06-02 09:37:33 +10:00
Andrew Tridgell 7ad8ea017c autotest: make column ordering in rst gen stable
needed for cache of param builds
2020-04-15 15:11:21 +10:00
Peter Barker 691ae58a79 Tools: rename APMrover2 to Rover 2020-04-14 09:50:34 +09:00
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
2020-04-10 15:40:01 +10:00
Pierre Kancir 5d299eb584 Tools: add error keyword on param parse for newcomers 2020-04-02 08:11:42 +11:00
Rishabh c859287310 Tools: param_metadata: check for duplicate enteries in parameter value field 2020-03-24 10:26:04 +11:00
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
2020-03-06 15:40:25 +11:00
Peter Barker a9f3f9af40 autotest: attempt to fix param-parse crlf issue 2020-03-01 20:50:56 +11:00
Peter Barker 293692cc24 autotest: strip whitespace from parameter attribute values
Attempt to fix \r\n issue on Azure cygwin tests
2020-02-21 19:51:15 +11:00
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.
2020-02-19 15:09:16 +11:00
Peter Barker 5d5f9b77e8 autotest: include AP_Vehicle parameters in documenation 2020-02-13 21:31:20 +11:00
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
2020-02-04 20:29:09 +11:00
Patrick José Pereira 4518e2b8f2 Tools: Add JSONEmit in param_parse
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2020-01-21 10:00:33 +11:00
Patrick José Pereira 1a14085a6d Tools: Add json param metadata parser
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2020-01-21 10:00:33 +11:00
bnsgeyer 6074b1b7c9 Tools: add RPM to units list 2019-09-13 08:53:54 +09:00
Andrew Tridgell 4b8972433a Tools: fixed handling of bitmask in param metdata
this prevents ARMING_CHECK from getting invalid values for the bitmask
2019-07-01 19:22:03 +10:00
Pierre Kancir 1101cc05e6 Tools: param_parse: update OptionParser to ArgumentParser 2019-04-02 19:57:13 +11:00
Michael du Breuil bb7abc2935 Tools: Allow specifying parameter metadata format
Also removes unneeded passing of a file pointer
2018-12-11 10:24:40 +11:00
Michael du Breuil 681d8416e2 Tools: Add an EDN parameter emitter 2018-12-11 10:24:40 +11:00
Pierre Kancir 4f35992049 Tools: make param_parse.py error more explicit
Signed-off-by: Pierre Kancir <pierre.kancir@azurdrones.com>
2018-10-10 11:22:45 +11:00
Peter Barker 27657bfd40 Tools: param_metadata: flake8 compliance 2018-10-08 14:56:24 +11:00
Hamish Willee 329b972845 Tools: param_metadata: Add parser code to include uniq ref from path 2018-10-08 14:56:09 +11:00
Peter Barker 7772279785 Tools: param_parse.py - fix vehicle-specific values 2018-08-06 12:27:56 +10:00
Peter Barker 8fdcd7e1f5 Tools: hide parameter in documentation if no values present 2018-07-17 12:08:27 +10:00
Pierre Kancir 6c43ab27c1 Tools: remove trailling semilocons 2018-07-12 21:13:02 +10:00
Michael du Breuil 177c4c2d44 Tools: Accept mAh as a unit 2018-05-26 08:49:02 +09:00
Tom Pittenger c59be8bafe Tools: add "octal" param unit 2018-05-23 14:02:45 -07:00
Peter Barker cb2e3424ee Tools: add kilobytes as known unit 2018-05-08 09:36:01 +10:00
Randy Mackay 8186ce0d32 Tools: add deg/s/s to valid parameter units 2018-04-05 12:14:59 +09:00
Peter Barker dca866c98d Tools: make parameter generation failure clearer 2018-03-26 12:39:23 +11:00
Peter Barker 338af9e142 Tools: correct misleading comment on per-vehicle parameter descriptions 2018-03-21 21:05:42 +11:00
Peter Barker 5ac5a68d17 Tools: param_parse.py: replace @PREFIX in values with library prefix 2018-03-14 15:44:00 +11:00
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
2017-12-16 11:08:35 +11:00
Peter Barker d1128e7be4 Tools: param_parse.py: replace comments with debug statements 2017-12-16 11:08:35 +11:00
Peter Barker eeb15d7fd5 Tools: param_parse.py: make comment consistent 2017-12-16 11:08:35 +11:00
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")
2017-12-16 11:08:35 +11:00
Peter Barker e0125a68e7 Tools: param_parse.py: use single regex for params everywhere 2017-12-16 11:08:35 +11:00
Peter Barker a45ab6b84c Tools: param_parse.py: correct example comment 2017-12-16 11:08:35 +11:00