Commit Graph

158 Commits

Author SHA1 Message Date
Peter Barker 01bf3fe6a1 autotest: param_metadata.py: emit bitmask as XML sub-element
make it easy for consumers to get at this data.

leaves the old form, so we don't break older consumers
2024-09-25 23:44:14 +10:00
Ikko Eltociear Ashimine 78f0e78977 Tools: update param_parse.py
seperator -> separator
2024-09-12 14:55:03 +10:00
Yuxin Pan e7359c12f1 Tools: add some parameter documentation
SITL: vehicle_test_suite.py parameters removal from whitelist

SITL: Add known unit amp hour

SITL: Add known unit Ah

Co-authored-by: Peter Barker <pb-gh@barker.dropbear.id.au>
2024-09-11 10:22:22 +10:00
Peter Barker bbdbf33c21 Tools: param_metadata: do not emit Legacy fields to rst/Wiki 2024-09-06 11:52:58 +10:00
Peter Barker 3ca15b23b9 autotest: param_metadata: add jerk as a known unit 2024-07-08 23:04:12 +10:00
Michael du Breuil 15bb86ded9 Tools: Do not emit __field_text in JSON parameter documentation
__field_text is basically the raw parsed text, and is used internally
but as far as I can tell it was never meant for external usage, the JSON
emitter already removes other fields that were not intended to be there.
By including the __field_text entry we were doubling the size of the
emitted documentation
2024-05-31 13:33:24 +10:00
Peter Barker 5cef031ce5 Tools: enforce Values/Bitmask sanity check for vehicles as well as libraries
we have enforced this one-of-Values-or-Bitmask in libraries for a long time, and should have been enforcing it in vehicles before now.

MissionPlanner and MAVProxy ignore Values if Bitmask is present
2024-05-21 14:27:05 +10:00
Andrew Tridgell 6199147fe2 Tools: new parameter units 2024-04-27 22:03:05 +10:00
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