Tools: add script to build all parameter documentation

This commit is contained in:
Peter Barker 2020-03-18 11:45:56 +11:00 committed by Peter Barker
parent b810a0de23
commit 9bb40af1c7
1 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,27 @@
#!/bin/bash
set -e
set -x
DIR="../buildlogs/LogMessages"
# work from either APM directory or above
[ -d ArduPlane ] || cd APM
/bin/mkdir -p "$DIR"
generate_log_message_documentation() {
VEHICLE="$1"
# generate Parameters.html, Parameters.rst etc etc:
./Tools/autotest/logger_metadata/parse.py --vehicle "$VEHICLE"
# stash some of the results away:
VEHICLE_DIR="$DIR/$VEHICLE"
mkdir -p "$VEHICLE_DIR"
/bin/cp LogMessages.* "$VEHICLE_DIR/"
}
for vehicle in Rover Plane Copter Tracker; do
generate_log_message_documentation "$vehicle"
done