ardupilot/Tools/scripts/build_parameters.sh

38 lines
780 B
Bash
Raw Normal View History

#!/bin/bash
set -e
set -x
2016-03-17 02:52:54 -03:00
PARAMS_DIR="../buildlogs/Parameters"
# work from either APM directory or above
[ -d ArduPlane ] || cd APM
2016-03-17 02:52:54 -03:00
/bin/mkdir -p "$PARAMS_DIR"
generate_parameters() {
VEHICLE="$1"
# generate Parameters.html, Parameters.rst etc etc:
./Tools/autotest/param_metadata/param_parse.py --vehicle $VEHICLE
# stash some of the results away:
VEHICLE_PARAMS_DIR="$PARAMS_DIR/$VEHICLE"
mkdir -p "$VEHICLE_PARAMS_DIR"
/bin/cp Parameters.wiki Parameters.html *.pdef.xml "$VEHICLE_PARAMS_DIR/"
if [ -e "Parameters.rst" ]; then
/bin/cp Parameters.rst "$VEHICLE_PARAMS_DIR/"
fi
}
2016-03-17 02:52:54 -03:00
generate_parameters ArduPlane
2016-03-17 02:52:54 -03:00
generate_parameters ArduCopter
2016-03-17 02:52:54 -03:00
2020-03-26 21:51:16 -03:00
generate_parameters Rover
2016-03-17 02:52:54 -03:00
generate_parameters ArduSub
2017-03-02 00:43:38 -04:00
generate_parameters AntennaTracker