diff options
| author | Bdale Garbee <bdale@gag.com> | 2016-01-10 17:43:34 -0700 |
|---|---|---|
| committer | Bdale Garbee <bdale@gag.com> | 2016-01-10 17:43:34 -0700 |
| commit | 86ccbac16f5cd0be4a4c11260816b4799cda46f2 (patch) | |
| tree | 3bbdf8d4479195ab267b6c3ef6c086cd8baf06b0 /ao-bringup/test-telemega-v1.0 | |
| parent | ebe009b9c7c2f4de3405479f800a33b449fcbb1e (diff) | |
modify bringup scripts to handle TeleMega v2.0
Diffstat (limited to 'ao-bringup/test-telemega-v1.0')
| -rwxr-xr-x | ao-bringup/test-telemega-v1.0 | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/ao-bringup/test-telemega-v1.0 b/ao-bringup/test-telemega-v1.0 new file mode 100755 index 00000000..2e497886 --- /dev/null +++ b/ao-bringup/test-telemega-v1.0 @@ -0,0 +1,66 @@ +#!/bin/sh + +VERSION=1.0 +PRODUCT=TeleMega +BASE=`echo $PRODUCT | tr 'A-Z' 'a-z'` + +echo "$PRODUCT-v$VERSION Test Program" +echo "Copyright 2014 by Keith Packard. Released under GPL v2" +echo +echo "Expectations:" +echo "\t$PRODUCT v$VERSION powered from USB" +echo + +ret=1 +ao-list | while read product serial dev; do + case "$product" in + "$PRODUCT-v$VERSION") + + echo "Testing $product $serial $dev" + + ./test-igniters $dev main drogue 3 0 1 2 + echo"" + + echo "Testing baro sensor" + ../ao-tools/ao-test-baro/ao-test-baro --tty="$dev" + + case $? in + 0) + ;; + *) + echo "failed" + exit 1 + esac + echo"" + + FLASHSIZE=8388608 + + echo "Testing flash" + ../ao-tools/ao-test-flash/ao-test-flash --tty="$dev" "$FLASHSIZE" + + case $? in + 0) + ;; + *) + echo "failed" + exit 1 + esac + echo"" + + echo "Testing GPS" + ../ao-tools/ao-test-gps/ao-test-gps --tty="$dev" + + case $? in + 0) + ;; + *) + echo "failed" + exit 1 + esac + echo"" + + echo "$PRODUCT-v$VERSION" serial "$serial" is ready to ship + ret=0 + ;; + esac +done |
