Commit Graph

150 Commits

Author SHA1 Message Date
Peter Barker
a1fe322f46 Tools: param_parse.py: stop emitting field text in JSON output 2024-01-17 18:33:25 +11:00
Peter Barker
e7cd43ad86 Tools: param_parse.py: sort RCn_OPTIONS progamatically 2024-01-17 18:33:25 +11:00
Peter Barker
51ed5b8dd9 Tools: param_parse.py: remove xmlemit_mp
this was used for a while to create xml files suitable for MissionPlanner toconsume.  MissionPlanner now uses apm.pdef.xml
2024-01-17 14:10:01 +11:00
Dr.-Ing. Amilcar do Carmo Lucas
2564ca03e2 Tools: Spell correction 2024-01-17 08:40:15 +09:00
Tom Pittenger
2650137e8c Tools: fix AP_Periph param docs generator 2023-11-29 12:11:14 +11:00
Andrew Tridgell
65099d0626 Tools: allow Ohm units in parameters 2023-10-08 11:04:21 +11:00
Peter Barker
d58e482cba Tools: param_parse.py: add and use new markup @Vector3Parameter
Generates three parameter documentation entries, one for each axis.

Avoids having to duplicate the same data three times for each entry in the vector
2023-08-11 10:34:02 +10:00
Iampete1
5fa8b887a2 Tools: Param Parse: add reference name to vehicle parameter table 2023-06-30 09:46:47 +10:00
Andrew Tridgell
8442787770 Tools: added litres param unit 2023-05-30 21:04:34 +10:00
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
bd850b9034 param_parse.py: emit rst heading only for SIM_, no children 2023-01-10 14:39:45 +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
Reilly Callaway
b839fb582c Tools: Add kg per cubic meter unit metadata 2022-09-20 15:24:48 +10: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
TunaLobster
670378dc73 Tools: rstemit.py: Change Range to be clearer meaning 2022-07-12 12:58:39 +10:00
Pierre Kancir
e2ce9b388c Tools: fix rstemit.py permission 2022-06-08 08:16:42 +09:00
Pierre Kancir
5bdc77a5b9 Tools: param_metadata: remove useless shebang 2022-06-08 08:16:42 +09:00
Peter Barker
dfa373c1d7 autotest: param_parse.py: correct JSON output 2021-12-21 11:55:51 +11: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
7d92ab1fb0 Tools: Fix emit.py regex 2021-08-23 14:44:27 +10:00
TunaLobster
6381297215 Tools: Move reboot required from table to note 2021-08-20 11:23:21 +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
b369e86c0c Tools: param_parse: remove references to APM in parameter generation 2021-04-07 17:08:25 +10:00
Peter Barker
229b25d916 Tools: param_parse: add *args and **kwargs to emitters 2021-04-07 17:08:25 +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
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'
2021-04-02 14:39:39 +11:00