mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_Motors: example: add script to run motor example at a range of head rooms and throttle average max values
This commit is contained in:
parent
7c92340b42
commit
e9da278164
26
libraries/AP_Motors/examples/AP_Motors_test/MotorTestSweep.sh
Executable file
26
libraries/AP_Motors/examples/AP_Motors_test/MotorTestSweep.sh
Executable file
@ -0,0 +1,26 @@
|
|||||||
|
# Build and run the motors example stability test at a range of yaw headroom and throttle average max values
|
||||||
|
# Output results to files for comparison
|
||||||
|
|
||||||
|
cd "$(dirname "$0")"
|
||||||
|
cd ../../../..
|
||||||
|
|
||||||
|
mkdir -p MotorTestSweep
|
||||||
|
|
||||||
|
./waf configure --board linux
|
||||||
|
./waf build --target examples/AP_Motors_test
|
||||||
|
echo
|
||||||
|
|
||||||
|
YAW_HEADROOM="0 100 200 300 400 500 600 700 800 900 1000"
|
||||||
|
THR_AVERAGE_MAX="0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0"
|
||||||
|
|
||||||
|
COUNTER=0
|
||||||
|
for headroom in $YAW_HEADROOM; do
|
||||||
|
echo "Yaw Headroom: $headroom"
|
||||||
|
for Thr in $THR_AVERAGE_MAX; do
|
||||||
|
echo " Throttle average max: $Thr"
|
||||||
|
./build/linux/examples/AP_Motors_test s yaw_headroom=$headroom throttle_avg_max=$Thr > MotorTestSweep/$COUNTER.csv
|
||||||
|
let COUNTER++
|
||||||
|
done
|
||||||
|
echo
|
||||||
|
done
|
||||||
|
|
Loading…
Reference in New Issue
Block a user