diff options
| author | Bdale Garbee <bdale@gag.com> | 2017-12-11 21:33:21 -0700 | 
|---|---|---|
| committer | Bdale Garbee <bdale@gag.com> | 2017-12-11 21:33:21 -0700 | 
| commit | 9adf8b23aac8256f230b10adcab9dd323266caaa (patch) | |
| tree | 646bec06b71527d6a4b9f2d47327b408ba388c07 | |
| parent | b4d78ad85e8f5b1bee78746d63bb4b069e087e5a (diff) | |
TeleMega default is now v3.0
| -rwxr-xr-x | ao-bringup/test-telemega-v2.0 | 67 | 
1 files changed, 67 insertions, 0 deletions
diff --git a/ao-bringup/test-telemega-v2.0 b/ao-bringup/test-telemega-v2.0 new file mode 100755 index 00000000..0ac475a3 --- /dev/null +++ b/ao-bringup/test-telemega-v2.0 @@ -0,0 +1,67 @@ +#!/bin/sh + +VERSION=2.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 +	    echo "\007" +	    ret=0 +	    ;; +    esac +done  | 
