Commit Graph

91 Commits

Author SHA1 Message Date
Peter Barker d8bc223fe4 autotest: param_parse.py: recurse, don't glob in lua script dirs
many scripts are now categoriesed e.g. Aerobatics
2023-04-05 10:07:19 +10:00
Iampete1 65374a01a3 Tools: autotest: param metadata: allow parsing multi line values 2023-03-21 11:41:18 +11:00
Andrew Tridgell 2d127c27c3 Tools: throw an error on duplication parameters in libraries 2023-02-12 07:02:15 +11:00
Andrew Tridgell 01d72aef17 Tools: cope with not being in top directory
autotest runs from ../buildlogs
2023-02-11 12:56:05 +11:00
Andrew Tridgell 62b7d0276e Tools: don't put lua parameters in rst output 2023-02-11 12:56:05 +11:00
Andrew Tridgell 51a6c69f9b Tools: support parameter docs from lua applets and drivers 2023-02-11 12:56:05 +11:00
Peter Barker 52f6810d50 Tools: param_parse.py: sort SIM_ parameters into the output files
primarily to make the Wiki look nicer
2023-01-12 13:46:22 +11:00
Peter Barker 8de890bc7d param_parse.py: emit SIM_ parameters along with everthing else 2023-01-10 14:39:45 +11:00
Peter Barker f0641f2734 Tools: implement parameter CopyFieldsFrom and use it 2023-01-03 11:08:43 +11:00
Peter Barker cbecb20614 autotest: param_parse.py: allow Values and Bitmasks to span multiple lines 2022-12-28 13:21:18 +11:00
Andrew Tridgell 2157dd7934 Tools: added required fields for libraries
there are 7 missing at the moment:

missing parameter metadata field 'Description' in ARSPD_USE
missing parameter metadata field 'Description' in ARSPD_OPTIONS
missing parameter metadata field 'Description' in ARSPD2_USE
missing parameter metadata field 'Description' in ARSPD2_AUTOCAL
missing parameter metadata field 'Description' in ADSB_OPTIONS
missing parameter metadata field 'Description' in Q_LOIT_ANG_MAX
missing parameter metadata field 'Description' in Q_WVANE_HGT_MIN
2022-08-16 11:50:11 +10:00
Peter Barker ff77a17fdd autotest: param_parse.py: allow CopyValuesFrom in vehicle directories 2021-12-16 07:11:33 +11:00
Peter Barker 7eb6fdbecd Tools: param_metadata: add support from CopyValuesFrom 2021-12-15 09:54:06 +11:00
TunaLobster 1df66731c8 Tools: Add rstlatexpdf emitter 2021-08-31 09:28:03 +10:00
TunaLobster b5f7fca254 Tools: parameter emitter spelling pass 2021-08-19 10:00:16 +10:00
Michelle Rossouw 8017e528c8 Tools: Add Blimp to param_parse.py 2021-07-06 14:56:02 +10:00
Peter Barker b6d5569244 Tools: param_metadata: disallow @Values and @Bitmask at same time 2021-06-23 18:37:34 +10:00
Peter Barker 0a06a9e446 param_metadata: reinstance @Values/@Bitmask magic for excluding params from vehicle output 2021-05-17 10:18:35 +10:00
Peter Barker eb2b1b3231 Tools: param_meteadata: correct @Values{Plane} etc handling 2021-05-17 10:18:35 +10:00
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.
2021-05-13 21:09:45 +10:00
Peter Barker 3ea9307419 Tools: param_metadata: flake8 cleanliness 2021-05-13 21:09:45 +10:00
Peter Barker 1123de112c Tools: param_metadata: tidy finding of Vehicle parameter file 2021-05-13 21:09:45 +10:00
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.
2021-05-13 21:09:45 +10:00
Pierre Kancir 927a875133 Tools: param_parse: fix vehicle specific parameter with multiple fields 2021-04-21 11:30:54 +10:00
Peter Barker 27b6637c2d Tools: param_parse.py: add support for generation for AP_Periph 2021-04-11 11:31:41 +10:00
Peter Barker b107740542 Tools: param_parse: add --sitl to emit only SIM_ parameters 2021-04-10 11:28:22 +10:00
Peter Barker 5a927d84c8 Tools: param_parse: rejig selection of emitters 2021-04-07 17:08:25 +10:00
Peter Barker 5ef5fc9d84 Tools: param_parse: stop generating old .wiki format 2021-04-07 17:08:25 +10:00
Peter Barker c3414a5767 Tools: param_parse: move init of variable lower 2021-04-07 17:08:25 +10:00
Peter Barker 4c6b07e950 Tools: param_parse: remove support for Parameters.pde 2021-04-07 17:08:25 +10:00
Pierre Kancir ebe841ba70 Tools: param_parse: validate empty description and fields 2021-03-17 18:54:53 +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
Pierre Kancir 4930142b6e Tools: add generator for MP parameter xml 2020-08-05 22:32:33 +10:00
Peter Barker d1170db4bf Tools: allow parameters to be specified on a per-vehicle basis 2020-06-16 11:21:47 +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
Peter Barker 691ae58a79 Tools: rename APMrover2 to Rover 2020-04-14 09:50:34 +09: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
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
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