]> git.gag.com Git - fw/altos/commitdiff
rework bringup scripts to use packaged firmware and utilities
authorBdale Garbee <bdale@gag.com>
Thu, 12 Oct 2023 04:13:43 +0000 (22:13 -0600)
committerBdale Garbee <bdale@gag.com>
Thu, 12 Oct 2023 04:13:43 +0000 (22:13 -0600)
56 files changed:
ao-bringup/cal-freq
ao-bringup/fix-telebt
ao-bringup/test-easymega
ao-bringup/test-easymega-v1.0
ao-bringup/test-easymini
ao-bringup/test-easymini-v1.0
ao-bringup/test-easymini-v3.0
ao-bringup/test-easymotor-v3
ao-bringup/test-easytimer
ao-bringup/test-igniters
ao-bringup/test-igniters-nowait
ao-bringup/test-telegps-v1
ao-bringup/test-telegps-v2
ao-bringup/test-telegps-v3
ao-bringup/test-telemega-v1.0
ao-bringup/test-telemega-v2.0
ao-bringup/test-telemega-v3.0
ao-bringup/test-telemega-v4.0
ao-bringup/test-telemega-v5.0
ao-bringup/test-telemega-v6.0
ao-bringup/test-telemetrum-v2.0
ao-bringup/test-telemetrum-v3.0
ao-bringup/test-telemetrum-v4.0
ao-bringup/test-telemini
ao-bringup/turnon_chaoskey
ao-bringup/turnon_easymega
ao-bringup/turnon_easymega_v1.0
ao-bringup/turnon_easymini
ao-bringup/turnon_easymini_v1.0
ao-bringup/turnon_easymotor
ao-bringup/turnon_easytimer
ao-bringup/turnon_telebt
ao-bringup/turnon_telebt_v1 [deleted file]
ao-bringup/turnon_telebt_v3
ao-bringup/turnon_teledongle
ao-bringup/turnon_teledongle_v0.2 [deleted file]
ao-bringup/turnon_telefireeight
ao-bringup/turnon_telegps
ao-bringup/turnon_telegps_v1
ao-bringup/turnon_telegps_v2
ao-bringup/turnon_telelco
ao-bringup/turnon_telemega
ao-bringup/turnon_telemega_v1.0
ao-bringup/turnon_telemega_v2.0
ao-bringup/turnon_telemega_v3.0
ao-bringup/turnon_telemega_v4.0
ao-bringup/turnon_telemega_v5.0
ao-bringup/turnon_telemetrum
ao-bringup/turnon_telemetrum_v1.1 [deleted file]
ao-bringup/turnon_telemetrum_v2.0
ao-bringup/turnon_telemetrum_v3.0
ao-bringup/turnon_telemini
ao-bringup/turnon_telemini_v2 [new file with mode: 0755]
ao-bringup/turnon_teleminiv2 [deleted file]
ao-bringup/turnon_teleshield [deleted file]
ao-bringup/turnon_teleterra [deleted file]

index 40c25ce8a5bc7b4c516d871b5bf6893b4dda2e03..849a919dfd878f8ba05adbd68ba806c8e9092826 100755 (executable)
@@ -10,10 +10,10 @@ case $# in
        ;;
 esac
 
-../ao-tools/ao-cal-freq/ao-cal-freq --tty=$dev
+ao-cal-freq --tty=$dev
 case $? in
     0)
-       calline=`./get-radio-cal $dev`
+       calline=`get-radio-cal $dev`
        CAL_VALUE=`echo $calline | awk '{print $2}'`
        CURRENT_FREQ=`echo $calline | awk '{print $4}'`
        echo $SERIAL","$CAL_VALUE >> cal_values
index 35933e9f338b99df3386fb835d5c42064ad6f030..dcd044011debe51cc21baa7513a67c2d2383ccd7 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 VERSION=4.0
-REPO=~/altusmetrumllc/Binaries
+REPO=/usr/share/altos/mfg-fw
 PRODUCT=TeleBT
 
 ALTOS_FILE=$REPO/telebt-v$VERSION-*.elf
index 04dfb44bfef9b903b64f97336f669f585a5a246f..b863163af06f4a27d9946169b6638cd7a72c61f5 100755 (executable)
@@ -19,11 +19,11 @@ ao-list | while read product serial dev; do
            echo "Testing $product $serial $dev"
            echo ""
 
-           ./test-igniters $dev --rplus=100 --rminus=27 --adcmax=4095 main drogue 3 0 1 2
+           test-igniters $dev --rplus=100 --rminus=27 --adcmax=4095 main drogue 3 0 1 2
            echo""
 
            echo "Testing baro sensor"
-           ../ao-tools/ao-test-baro/ao-test-baro --tty="$dev"
+           ao-test-baro --tty="$dev"
 
            case $? in
                0)
@@ -37,7 +37,7 @@ ao-list | while read product serial dev; do
            FLASHSIZE=8388608
 
            echo "Testing flash"
-           ../ao-tools/ao-test-flash/ao-test-flash --tty="$dev" "$FLASHSIZE"
+           ao-test-flash --tty="$dev" "$FLASHSIZE"
 
            case $? in
                0)
index 2f0a7822335e8ea46fb2babdfb6bc568da593e39..795a0b8a73eadff87ef4f4b56994eeec9555628f 100755 (executable)
@@ -12,18 +12,18 @@ echo "\t$PRODUCT v$VERSION powered from USB"
 echo
 
 ret=1
-../ao-tools/ao-list/ao-list | while read product serial dev; do
+ao-list | while read product serial dev; do
     case "$product" in
        "$PRODUCT-v$VERSION")
 
            echo "Testing $product $serial $dev"
            echo ""
 
-           ./test-igniters $dev drogue main 0 1 2 3
+           test-igniters $dev drogue main 0 1 2 3
            echo""
 
            echo "Testing baro sensor"
-           ../ao-tools/ao-test-baro/ao-test-baro --tty="$dev"
+           ao-test-baro --tty="$dev"
 
            case $? in
                0)
@@ -37,7 +37,7 @@ ret=1
            FLASHSIZE=8388608
 
            echo "Testing flash"
-           ../ao-tools/ao-test-flash/ao-test-flash --tty="$dev" "$FLASHSIZE"
+           ao-test-flash --tty="$dev" "$FLASHSIZE"
 
            case $? in
                0)
index 3268f44cdb0ddedacad98555d4624b98b3f143e6..5ebd51ae284166dda086da50c1f5a4ede389a931 100755 (executable)
@@ -23,11 +23,11 @@ while [ $found -eq 0 ]; do
                
                sleep 0.25
 
-               ./test-igniters-nowait "$dev" --rplus=100 --rminus=27 --adcmax=32767 drogue main
+               test-igniters-nowait "$dev" --rplus=100 --rminus=27 --adcmax=32767 drogue main
                echo ""
 
                echo "Testing baro sensor"
-               ../ao-tools/ao-test-baro/ao-test-baro --tty="$dev"
+               ao-test-baro --tty="$dev"
 
                if [ $? -ne 0 ]; then
                    echo -e '\e[31m'"$PRODUCT-$VERSION serial $serial failed"'\e[39m'
@@ -38,7 +38,7 @@ while [ $found -eq 0 ]; do
                FLASHSIZE=1048576
 
                echo "Testing flash"
-               ../ao-tools/ao-test-flash/ao-test-flash --tty="$dev" "$FLASHSIZE"
+               ao-test-flash --tty="$dev" "$FLASHSIZE"
 
                if [ $? -ne 0 ]; then
                    echo -e '\e[31m'"$PRODUCT-$VERSION serial $serial failed"'\e[39m'
index 8a0836f633aaf16ce573ae1b1144162a2064bddd..5689253749ff164ce4abcd2c0874a89df21235b2 100755 (executable)
@@ -23,11 +23,11 @@ while [ $found -eq 0 ]; do
                
                sleep 2
 
-               ./test-igniters-nowait "$dev" drogue main
+               test-igniters-nowait "$dev" drogue main
                echo ""
 
                echo "Testing baro sensor"
-               ../ao-tools/ao-test-baro/ao-test-baro --tty="$dev"
+               ao-test-baro --tty="$dev"
 
                if [ $? -ne 0 ]; then
                    echo -e '\e[31m'"$PRODUCT-$VERSION serial $serial failed"'\e[39m'
@@ -38,7 +38,7 @@ while [ $found -eq 0 ]; do
                FLASHSIZE=1048576
 
                echo "Testing flash"
-               ../ao-tools/ao-test-flash/ao-test-flash --tty="$dev" "$FLASHSIZE"
+               ao-test-flash --tty="$dev" "$FLASHSIZE"
 
                if [ $? -ne 0 ]; then
                    echo -e '\e[31m'"$PRODUCT-$VERSION serial $serial failed"'\e[39m'
index 779a800c21e634080b7790fbb2b111b2a9db9561..3633cae99bd190d2b647817e6f367e56104fa53e 100755 (executable)
@@ -23,11 +23,11 @@ while [ $found -eq 0 ]; do
                
                sleep 2
 
-               ./test-igniters-nowait "$dev" drogue main
+               test-igniters-nowait "$dev" drogue main
                echo ""
 
                echo "Testing baro sensor"
-               ../ao-tools/ao-test-baro/ao-test-baro --tty="$dev"
+               ao-test-baro --tty="$dev"
 
                if [ $? -ne 0 ]; then
                    echo -e '\e[31m'"$PRODUCT-$VERSION serial $serial failed"'\e[39m'
@@ -38,7 +38,7 @@ while [ $found -eq 0 ]; do
                FLASHSIZE=1048576
 
                echo "Testing flash"
-               ../ao-tools/ao-test-flash/ao-test-flash --tty="$dev" "$FLASHSIZE"
+               ao-test-flash --tty="$dev" "$FLASHSIZE"
 
                if [ $? -ne 0 ]; then
                    echo -e '\e[31m'"$PRODUCT-$VERSION serial $serial failed"'\e[39m'
index e1454b8b46c530bcfc20b03d9342985fbd467488..e82ed38c2e454b4fbf9cd3a62f5bd3f442050229 100755 (executable)
@@ -23,12 +23,12 @@ ao-list | while read product serial dev; do
            FLASHSIZE=8388608
 
            echo "Testing flash"
-           ../ao-tools/ao-test-flash/ao-test-flash --tty="$dev" "$FLASHSIZE"
+           ao-test-flash --tty="$dev" "$FLASHSIZE"
 
            echo "" 
 
            echo "Testing pressure sensor input"
-           ../ao-tools/ao-test-pressure/ao-test-pressure --tty="$dev" 
+           ao-test-pressure --tty="$dev" 
 
            case $? in
                0)
index f93164c6aede4459ee577d4e57bafb0b20309c63..eacdc5dd1865f8270b6262d8ef0f7d344bad9ba4 100755 (executable)
@@ -18,7 +18,7 @@ ao-list | while read product serial dev; do
 
            echo "Testing $product $serial $dev"
 
-           ./test-igniters $dev 0 1
+           test-igniters $dev 0 1
            echo""
 
            case $? in
index 1cbe4744f70b6b25452cbe5cb0c5c5f2c8b00a7a..14a1b967192042e4e7b8268c9451db004f094593 100755 (executable)
@@ -14,7 +14,7 @@ for igniter in "$@"; do
            while [ $pass != "y" ]; do
                echo -n "Testing $igniter igniter. Press enter to continue..."
                read foo < /dev/tty
-               ../ao-tools/ao-test-igniter/ao-test-igniter --tty="$dev" $args $igniter
+               ao-test-igniter --tty="$dev" $args $igniter
 
                case $? in
                    0)
index 338f49af7b058b6811adf943d02a2530e08c6c79..731bcf363d6076168d53584fa938adc14078363d 100755 (executable)
@@ -14,7 +14,7 @@ for igniter in "$@"; do
            while [ $pass != "y" ]; do
 
                echo "Testing $igniter igniter."
-               ../ao-tools/ao-test-igniter/ao-test-igniter --tty="$dev" $args $igniter
+               ao-test-igniter --tty="$dev" $args $igniter
 
                case $? in
                    0)
index 0b27580205e4794c05f2d59139a80b951e86d09b..914d4d8d4887a4deb38d2f28c2aace03993c5ecc 100755 (executable)
@@ -21,7 +21,7 @@ ao-list | while read product serial dev; do
            FLASHSIZE=2097152
 
            echo "Testing flash"
-           ../ao-tools/ao-test-flash/ao-test-flash --tty="$dev" "$FLASHSIZE"
+           ao-test-flash --tty="$dev" "$FLASHSIZE"
 
            case $? in
                0)
@@ -32,7 +32,7 @@ ao-list | while read product serial dev; do
            esac
 
            echo "Testing GPS"
-           ../ao-tools/ao-test-gps/ao-test-gps --tty="$dev"
+           ao-test-gps --tty="$dev"
 
            case $? in
                0)
index b103aed452e9d2a701fde0fb0cdcb9c7edbc93f7..784d7e23c67b1c952180651eb5e962f3f2c73fb8 100755 (executable)
@@ -21,7 +21,7 @@ ao-list | while read product serial dev; do
            FLASHSIZE=2097152
 
            echo "Testing flash"
-           ../ao-tools/ao-test-flash/ao-test-flash --tty="$dev" "$FLASHSIZE"
+           ao-test-flash --tty="$dev" "$FLASHSIZE"
 
            case $? in
                0)
@@ -32,7 +32,7 @@ ao-list | while read product serial dev; do
            esac
 
            echo "Testing GPS"
-           ../ao-tools/ao-test-gps/ao-test-gps --tty="$dev"
+           ao-test-gps --tty="$dev"
 
            case $? in
                0)
index 0354383838d8be641d320c5bc9e22e16451ee2e0..f231589c4595b988269d22ff9a03e33e06694a0d 100755 (executable)
@@ -21,7 +21,7 @@ ao-list | while read product serial dev; do
            FLASHSIZE=2097152
 
            echo "Testing flash"
-           ../ao-tools/ao-test-flash/ao-test-flash --tty="$dev" "$FLASHSIZE"
+           ao-test-flash --tty="$dev" "$FLASHSIZE"
 
            case $? in
                0)
@@ -32,7 +32,7 @@ ao-list | while read product serial dev; do
            esac
 
            echo "Testing GPS"
-           ../ao-tools/ao-test-gps/ao-test-gps --tty="$dev"
+           ao-test-gps --tty="$dev"
 
            case $? in
                0)
index 2e497886cf5a4a5a664f4f306ee3fea914167d53..41e9ea3f9ddfd310fbad0231e9eae197df90aa05 100755 (executable)
@@ -18,11 +18,11 @@ ao-list | while read product serial dev; do
 
            echo "Testing $product $serial $dev"
 
-           ./test-igniters $dev main drogue 3 0 1 2
+           test-igniters $dev main drogue 3 0 1 2
            echo""
 
            echo "Testing baro sensor"
-           ../ao-tools/ao-test-baro/ao-test-baro --tty="$dev"
+           ao-test-baro --tty="$dev"
 
            case $? in
                0)
@@ -36,7 +36,7 @@ ao-list | while read product serial dev; do
            FLASHSIZE=8388608
 
            echo "Testing flash"
-           ../ao-tools/ao-test-flash/ao-test-flash --tty="$dev" "$FLASHSIZE"
+           ao-test-flash --tty="$dev" "$FLASHSIZE"
 
            case $? in
                0)
@@ -48,7 +48,7 @@ ao-list | while read product serial dev; do
            echo""
 
            echo "Testing GPS"
-           ../ao-tools/ao-test-gps/ao-test-gps --tty="$dev"
+           ao-test-gps --tty="$dev"
 
            case $? in
                0)
index 0ac475a30044eb25fc79b0dc8aa6007e71c951ee..c31ea96d46be36b1102408f71a82c7a4ce92e419 100755 (executable)
@@ -18,11 +18,11 @@ ao-list | while read product serial dev; do
 
            echo "Testing $product $serial $dev"
 
-           ./test-igniters $dev main drogue 3 0 1 2
+           test-igniters $dev main drogue 3 0 1 2
            echo""
 
            echo "Testing baro sensor"
-           ../ao-tools/ao-test-baro/ao-test-baro --tty="$dev"
+           ao-test-baro --tty="$dev"
 
            case $? in
                0)
@@ -36,7 +36,7 @@ ao-list | while read product serial dev; do
            FLASHSIZE=8388608
 
            echo "Testing flash"
-           ../ao-tools/ao-test-flash/ao-test-flash --tty="$dev" "$FLASHSIZE"
+           ao-test-flash --tty="$dev" "$FLASHSIZE"
 
            case $? in
                0)
@@ -48,7 +48,7 @@ ao-list | while read product serial dev; do
            echo""
 
            echo "Testing GPS"
-           ../ao-tools/ao-test-gps/ao-test-gps --tty="$dev"
+           ao-test-gps --tty="$dev"
 
            case $? in
                0)
index ec024e32d4b3576b51b7bc2af583dac60a7ee1ee..7cd5bd8ae512ff594ed766737c0a35fe30e24ca0 100755 (executable)
@@ -18,11 +18,11 @@ ao-list | while read product serial dev; do
 
            echo "Testing $product $serial $dev"
 
-           ./test-igniters $dev main drogue 3 0 1 2
+           test-igniters $dev main drogue 3 0 1 2
            echo""
 
            echo "Testing baro sensor"
-           ../ao-tools/ao-test-baro/ao-test-baro --tty="$dev"
+           ao-test-baro --tty="$dev"
 
            case $? in
                0)
@@ -36,7 +36,7 @@ ao-list | while read product serial dev; do
            FLASHSIZE=8388608
 
            echo "Testing flash"
-           ../ao-tools/ao-test-flash/ao-test-flash --tty="$dev" "$FLASHSIZE"
+           ao-test-flash --tty="$dev" "$FLASHSIZE"
 
            case $? in
                0)
@@ -48,7 +48,7 @@ ao-list | while read product serial dev; do
            echo""
 
            echo "Testing GPS"
-           ../ao-tools/ao-test-gps/ao-test-gps --tty="$dev"
+           ao-test-gps --tty="$dev"
 
            case $? in
                0)
index 3355d866ba464e381a3c7dfd362d65930237cda5..a17e1f1d29940d09f460325a720d21dec0838ce7 100755 (executable)
@@ -18,11 +18,11 @@ ao-list | while read product serial dev; do
 
            echo "Testing $product $serial $dev"
 
-           ./test-igniters $dev --rplus=100 --rminus=27 --adcmax=4095 main drogue 3 0 1 2
+           test-igniters $dev --rplus=100 --rminus=27 --adcmax=4095 main drogue 3 0 1 2
            echo""
 
            echo "Testing baro sensor"
-           ../ao-tools/ao-test-baro/ao-test-baro --tty="$dev"
+           ao-test-baro --tty="$dev"
 
            case $? in
                0)
@@ -36,7 +36,7 @@ ao-list | while read product serial dev; do
            FLASHSIZE=8388608
 
            echo "Testing flash"
-           ../ao-tools/ao-test-flash/ao-test-flash --tty="$dev" "$FLASHSIZE"
+           ao-test-flash --tty="$dev" "$FLASHSIZE"
 
            case $? in
                0)
@@ -48,7 +48,7 @@ ao-list | while read product serial dev; do
            echo""
 
            echo "Testing GPS"
-           ../ao-tools/ao-test-gps/ao-test-gps --tty="$dev"
+           ao-test-gps --tty="$dev"
 
            case $? in
                0)
index 14e4a4562acc09d6c8213acfd14aadece0c46df9..929044c5d2b431d2e9316ac918874d035c4c4b38 100755 (executable)
@@ -18,11 +18,11 @@ ao-list | while read product serial dev; do
 
            echo "Testing $product $serial $dev"
 
-           ./test-igniters $dev --rplus=100 --rminus=27 --adcmax=4095 main drogue 3 0 1 2
+           test-igniters $dev --rplus=100 --rminus=27 --adcmax=4095 main drogue 3 0 1 2
            echo""
 
            echo "Testing baro sensor"
-           ../ao-tools/ao-test-baro/ao-test-baro --tty="$dev"
+           ao-test-baro --tty="$dev"
 
            case $? in
                0)
@@ -36,7 +36,7 @@ ao-list | while read product serial dev; do
            FLASHSIZE=8388608
 
            echo "Testing flash"
-           ../ao-tools/ao-test-flash/ao-test-flash --tty="$dev" "$FLASHSIZE"
+           ao-test-flash --tty="$dev" "$FLASHSIZE"
 
            case $? in
                0)
@@ -48,7 +48,7 @@ ao-list | while read product serial dev; do
            echo""
 
            echo "Testing GPS"
-           ../ao-tools/ao-test-gps/ao-test-gps --tty="$dev"
+           ao-test-gps --tty="$dev"
 
            case $? in
                0)
index 881a74b02fd7e6241694d70963558141826aaf14..f6feb7b744ed94d2eb675146ed9d9ecd95eaf606 100755 (executable)
@@ -18,11 +18,11 @@ ao-list | while read product serial dev; do
 
            echo "Testing $product $serial $dev"
 
-           ./test-igniters $dev --rplus=100 --rminus=27 --adcmax=4095 main drogue 3 0 1 2
+           test-igniters $dev --rplus=100 --rminus=27 --adcmax=4095 main drogue 3 0 1 2
            echo""
 
            echo "Testing baro sensor"
-           ../ao-tools/ao-test-baro/ao-test-baro --tty="$dev"
+           ao-test-baro --tty="$dev"
 
            case $? in
                0)
@@ -36,7 +36,7 @@ ao-list | while read product serial dev; do
            FLASHSIZE=8388608
 
            echo "Testing flash"
-           ../ao-tools/ao-test-flash/ao-test-flash --tty="$dev" "$FLASHSIZE"
+           ao-test-flash --tty="$dev" "$FLASHSIZE"
 
            case $? in
                0)
@@ -48,7 +48,7 @@ ao-list | while read product serial dev; do
            echo""
 
            echo "Testing GPS"
-           ../ao-tools/ao-test-gps/ao-test-gps --tty="$dev"
+           ao-test-gps --tty="$dev"
 
            case $? in
                0)
index 13407e8675f38f1dd5ac7efc8eda262a1f8b9a0b..dc785d9edc3427e71b88648950fa601d8dfce032 100755 (executable)
@@ -19,11 +19,11 @@ ao-list | while read product serial dev; do
            echo "Testing $product $serial $dev"
            echo ""
 
-           ./test-igniters "$dev" drogue main
+           test-igniters "$dev" drogue main
            echo ""
 
            echo "Testing baro sensor"
-           ../ao-tools/ao-test-baro/ao-test-baro --tty="$dev"
+           ao-test-baro --tty="$dev"
 
            case $? in
                0)
@@ -37,7 +37,7 @@ ao-list | while read product serial dev; do
            FLASHSIZE=8388608
 
            echo "Testing flash"
-           ../ao-tools/ao-test-flash/ao-test-flash --tty="$dev" "$FLASHSIZE"
+           ao-test-flash --tty="$dev" "$FLASHSIZE"
 
            case $? in
                0)
@@ -49,7 +49,7 @@ ao-list | while read product serial dev; do
            echo""
 
            echo "Testing GPS"
-           ../ao-tools/ao-test-gps/ao-test-gps --tty="$dev"
+           ao-test-gps --tty="$dev"
 
            case $? in
                0)
index 914271837af9a6d953f326ae0d88df2e5ae82764..5e8ce5599720ced2f5c6550d3f7612431be66672 100755 (executable)
@@ -19,11 +19,11 @@ ao-list | while read product serial dev; do
            echo "Testing $product $serial $dev"
            echo ""
 
-           ./test-igniters "$dev" --rplus=100 --rminus=27 --adcmax=4095 drogue main
+           test-igniters "$dev" --rplus=100 --rminus=27 --adcmax=4095 drogue main
            echo ""
 
            echo "Testing baro sensor"
-           ../ao-tools/ao-test-baro/ao-test-baro --tty="$dev"
+           ao-test-baro --tty="$dev"
 
            case $? in
                0)
@@ -37,7 +37,7 @@ ao-list | while read product serial dev; do
            FLASHSIZE=8388608
 
            echo "Testing flash"
-           ../ao-tools/ao-test-flash/ao-test-flash --tty="$dev" "$FLASHSIZE"
+           ao-test-flash --tty="$dev" "$FLASHSIZE"
 
            case $? in
                0)
@@ -49,7 +49,7 @@ ao-list | while read product serial dev; do
            echo""
 
            echo "Testing GPS"
-           ../ao-tools/ao-test-gps/ao-test-gps --tty="$dev"
+           ao-test-gps --tty="$dev"
 
            case $? in
                0)
index 9fbacb5d63fbb146fcf47b9d69d63d35ad358bc5..0c3b631bbd9d2b75e0996b2397cac7568cc5d1d5 100755 (executable)
@@ -19,11 +19,11 @@ ao-list | while read product serial dev; do
            echo "Testing $product $serial $dev"
            echo ""
 
-           ./test-igniters "$dev" --rplus=100 --rminus=27 --adcmax=4095 drogue main
+           test-igniters "$dev" --rplus=100 --rminus=27 --adcmax=4095 drogue main
            echo ""
 
            echo "Testing baro sensor"
-           ../ao-tools/ao-test-baro/ao-test-baro --tty="$dev"
+           ao-test-baro --tty="$dev"
 
            case $? in
                0)
@@ -37,7 +37,7 @@ ao-list | while read product serial dev; do
            FLASHSIZE=8388608
 
            echo "Testing flash"
-           ../ao-tools/ao-test-flash/ao-test-flash --tty="$dev" "$FLASHSIZE"
+           ao-test-flash --tty="$dev" "$FLASHSIZE"
 
            case $? in
                0)
@@ -49,7 +49,7 @@ ao-list | while read product serial dev; do
            echo""
 
            echo "Testing GPS"
-           ../ao-tools/ao-test-gps/ao-test-gps --tty="$dev"
+           ao-test-gps --tty="$dev"
 
            case $? in
                0)
index c4a22f64813e267394cd3edb08f20753c23b85e9..c6f435a3723536ae62683831b62dd55a66d0611e 100755 (executable)
@@ -19,11 +19,11 @@ ao-list | while read product serial dev; do
            echo "Testing $product $serial $dev"
            echo ""
 
-           ./test-igniters "$dev" --rplus=100 --rminus=27 --adcmax=4095 drogue main
+           test-igniters "$dev" --rplus=100 --rminus=27 --adcmax=4095 drogue main
            echo ""
 
            echo "Testing baro sensor"
-           ../ao-tools/ao-test-baro/ao-test-baro --tty="$dev"
+           ao-test-baro --tty="$dev"
 
            case $? in
                0)
@@ -37,7 +37,7 @@ ao-list | while read product serial dev; do
            FLASHSIZE=524288
 
            echo "Testing flash"
-           ../ao-tools/ao-test-flash/ao-test-flash --tty="$dev" "$FLASHSIZE"
+           ao-test-flash --tty="$dev" "$FLASHSIZE"
 
            case $? in
                0)
index 9ad809122bd847139239ebc77d10b56a1886c96f..8625216c4bb0f6489dd0c7e1a5ae0db59c892cf4 100755 (executable)
@@ -16,6 +16,7 @@ fi
 
 VERSION=1.0
 PRODUCT=ChaosKey
+REPO=/usr/share/altos/mfg-fw
 
 echo "ChaosKey v$VERSION Turn-On and Calibration Program"
 echo "Copyright 2015 by Keith Packard.  Released under GPL v2"
@@ -24,8 +25,7 @@ echo "Expectations:"
 echo "\tChaosKey v$VERSION powered from USB"
 echo
 
-FLASH_FILE=~/altusmetrumllc/Binaries/chaoskey-v1.0-all-*.bin
-#ALTOS_FILE=~/altusmetrumllc/Binaries/chaoskey-v1.0-*.elf
+FLASH_FILE=$REPO/chaoskey-v1.0-all-*.bin
 
 $DFU_UTIL -a 0 -s 0x08000000:leave -D $FLASH_FILE || true
 
@@ -35,6 +35,6 @@ $DFU_UTIL -a 0 -s 0x08000000:leave -D $FLASH_FILE || true
 
 sleep 3
 
-./test-chaoskey
+test-chaoskey
 
 exit $?
index 64180bd3b9a3976fd41649c294f02a5063fb2bd9..be5f4265a02468788e175443aa0cd968d5ee35bb 100755 (executable)
@@ -2,7 +2,7 @@
 
 PRODUCT=EasyMega
 VERSION=2.0
-REPO=~/altusmetrumllc/Binaries
+REPO=/usr/share/altos/mfg-fw
 
 if [ -x /usr/bin/ao-flash-stm ]; then
        FLASH_STM=/usr/bin/ao-flash-stm
@@ -68,12 +68,12 @@ echo 'E 0' > $dev
 
 failed=1
 while [ $failed =  1 ]; do
-    ../ao-tools/ao-cal-accel/ao-cal-accel $dev
+    ao-cal-accel $dev
     failed=$?
 done
 
 echo 'E 1' > $dev
 
-./test-easymega
+test-easymega
 
 exit $?
index 2a3309844efa516aba4d850fe5f05a59ba2e573a..15c090743288c2f5568f8e5a2fc6c4db46cb7715 100755 (executable)
@@ -2,22 +2,22 @@
 
 PRODUCT=EasyMega
 
-if [ -x ../ao-tools/ao-flash/ao-flash-stm ]; then
-       STMLOAD=../ao-tools/ao-flash/ao-flash-stm
+if [ -x /usr/bin/ao-flash-stm ]; then
+       STMLOAD=/usr/bin/ao-flash-stm
 else
        echo "Can't find ao-flash-stm!  Aborting."
        exit 1
 fi
 
-if [ -x ../ao-tools/ao-usbload/ao-usbload ]; then
-       USBLOAD=../ao-tools/ao-usbload/ao-usbload
+if [ -x /usr/bin/ao-usbload ]; then
+       USBLOAD=/usr/bin/ao-usbload
 else
        echo "Can't find ao-usbload!  Aborting."
        exit 1
 fi
 
 VERSION=1.0
-REPO=~/altusmetrumllc/Binaries
+REPO=/usr/share/altos/mfg-fw
 
 echo "$PRODUCT v$VERSION Turn-On and Calibration Program"
 echo "Copyright 2014 by Bdale Garbee.  Released under GPL v2"
@@ -53,7 +53,7 @@ $USBLOAD --serial=$SERIAL $REPO/easymega-v$VERSION*.elf || exit 1
 
 sleep 2
 
-dev=`../ao-tools/ao-list/ao-list | awk '/'"$PRODUCT"'-v'"$VERSION"'/ { print $3; exit(0); }'`
+dev=`ao-list | awk '/'"$PRODUCT"'-v'"$VERSION"'/ { print $3; exit(0); }'`
 
 case "$dev" in
 /dev/tty*)
@@ -67,10 +67,10 @@ esac
 
 echo 'E 0' > $dev
 
-../ao-tools/ao-cal-accel/ao-cal-accel $dev || exit 1
+ao-cal-accel $dev || exit 1
 
 echo 'E 1' > $dev
 
-./test-easymega-v1.0
+test-easymega-v1.0
 
 exit $?
index 1960c4d679d314529b58a8bcaf6b7524a46409b0..a8a28420bed8d8412c4698b0fc4e740d26d7c71d 100755 (executable)
@@ -1,17 +1,13 @@
 #!/bin/sh
 
-if [ -x ../ao-tools/ao-flash/ao-flash-lpc ]; then
-       FLASH_LPC=../ao-tools/ao-flash/ao-flash-lpc
-elif [ -x /usr/bin/ao-flash-lpc ]; then
+if [ -x /usr/bin/ao-flash-lpc ]; then
        FLASH_LPC=/usr/bin/ao-flash-lpc
 else
        echo "Can't find ao-flash-lpc!  Aborting."
        exit 1
 fi
 
-if [ -x ../ao-tools/ao-usbload/ao-usbload ]; then
-       USBLOAD=../ao-tools/ao-usbload/ao-usbload
-elif [ -x /usr/bin/ao-usbload ]; then
+if [ -x /usr/bin/ao-usbload ]; then
        USBLOAD=/usr/bin/ao-usbload
 else
        echo "Can't find ao-usbload!  Aborting."
@@ -20,6 +16,7 @@ fi
 
 VERSION=3.0
 PRODUCT=EasyMini
+REPO=/usr/share/altos/mfg-fw
 BASE=`echo $PRODUCT | tr 'A-Z' 'a-z'`
 echo $FILE
 
@@ -49,8 +46,8 @@ esac
 #
 # Use released versions of everything
 #
-FLASH_FILE=~/altusmetrumllc/Binaries/loaders/easymini-v3.0-altos-flash-*.elf
-ALTOS_FILE=~/altusmetrumllc/Binaries/easymini-v3.0-*.elf
+FLASH_FILE=$REPO/loaders/easymini-v3.0-altos-flash-*.elf
+ALTOS_FILE=$REPO/easymini-v3.0-*.elf
 
 echo $FLASH_LPC $FLASH_FILE
 
@@ -64,6 +61,6 @@ $USBLOAD --serial=$SERIAL $ALTOS_FILE || exit 1
 
 sleep 1
 
-./test-easymini-v3.0
+test-easymini-v3.0
 
 exit $?
index 2041a448f9d8acc303dbdbeb71cdf0dcf3ad3c06..c9d750dbf81b30e4c502de5f3ae8a8c0dd7add84 100755 (executable)
@@ -1,17 +1,13 @@
 #!/bin/sh
 
-if [ -x ../ao-tools/ao-flash/ao-flash-lpc ]; then
-       FLASH_LPC=../ao-tools/ao-flash/ao-flash-lpc
-elif [ -x /usr/bin/ao-flash-lpc ]; then
+if [ -x /usr/bin/ao-flash-lpc ]; then
        FLASH_LPC=/usr/bin/ao-flash-lpc
 else
        echo "Can't find ao-flash-lpc!  Aborting."
        exit 1
 fi
 
-if [ -x ../ao-tools/ao-usbload/ao-usbload ]; then
-       USBLOAD=../ao-tools/ao-usbload/ao-usbload
-elif [ -x /usr/bin/ao-usbload ]; then
+if [ -x /usr/bin/ao-usbload ]; then
        USBLOAD=/usr/bin/ao-usbload
 else
        echo "Can't find ao-usbload!  Aborting."
@@ -20,6 +16,7 @@ fi
 
 VERSION=1.0
 PRODUCT=EasyMini
+REPO=/usr/share/altos/mfg-fw
 BASE=`echo $PRODUCT | tr 'A-Z' 'a-z'`
 echo $FILE
 
@@ -49,11 +46,8 @@ esac
 #
 # Use released versions of everything
 #
-FLASH_FILE=~/altusmetrumllc/Binaries/loaders/easymini-v1.0-altos-flash-*.elf
-ALTOS_FILE=~/altusmetrumllc/Binaries/easymini-v1.0-*.elf
-
-#FLASH_FILE=../src/$BASE-v$VERSION/flash-loader/$BASE-v$VERSION-altos-flash-*.elf
-#ALTOS_FILE=../src/$BASE-v$VERSION/*.ihx
+FLASH_FILE=$REPO/loaders/easymini-v1.0-altos-flash-*.elf
+ALTOS_FILE=$REPO/easymini-v1.0-*.elf
 
 echo $FLASH_LPC $FLASH_FILE
 
@@ -67,6 +61,6 @@ $USBLOAD --serial=$SERIAL $ALTOS_FILE || exit 1
 
 sleep 1
 
-./test-easymini-v1.0
+test-easymini-v1.0
 
 exit $?
index 4678430d1498fcdff9b22afd54b64b0c5dfdea02..42bc2b6f9aa51689a73d6fb22d1902d06df05e75 100755 (executable)
@@ -1,17 +1,13 @@
 #!/bin/sh
 
-if [ -x ../ao-tools/ao-flash/ao-flash-lpc ]; then
-       FLASH_LPC=../ao-tools/ao-flash/ao-flash-lpc
-elif [ -x /usr/bin/ao-flash-lpc ]; then
+if [ -x /usr/bin/ao-flash-lpc ]; then
        FLASH_LPC=/usr/bin/ao-flash-lpc
 else
        echo "Can't find ao-flash-lpc!  Aborting."
        exit 1
 fi
 
-if [ -x ../ao-tools/ao-usbload/ao-usbload ]; then
-       USBLOAD=../ao-tools/ao-usbload/ao-usbload
-elif [ -x /usr/bin/ao-usbload ]; then
+if [ -x /usr/bin/ao-usbload ]; then
        USBLOAD=/usr/bin/ao-usbload
 else
        echo "Can't find ao-usbload!  Aborting."
@@ -20,6 +16,7 @@ fi
 
 VERSION=3
 PRODUCT=EasyMotor
+REPO=/usr/share/altos/mfg-fw
 BASE=`echo $PRODUCT | tr 'A-Z' 'a-z'`
 echo $FILE
 
@@ -50,8 +47,8 @@ otootor
 #
 # Use released versions of everything
 #
-FLASH_FILE=~/altusmetrumllc/Binaries/loaders/easymotor-v3-altos-flash-*.elf
-ALTOS_FILE=~/altusmetrumllc/Binaries/easymotor-v3-*.elf
+FLASH_FILE=$REPO/loaders/easymotor-v3-altos-flash-*.elf
+ALTOS_FILE=$REPO/easymotor-v3-*.elf
 
 echo $FLASH_LPC $FLASH_FILE
 
@@ -81,7 +78,7 @@ echo 'E 0' > $dev
 
 failed=1
 while [ $failed = 1 ]; do
-    ../ao-tools/ao-cal-accel/ao-cal-accel $dev
+    ao-cal-accel $dev
     failed=$?
 done
 
@@ -89,6 +86,6 @@ echo 'E 1' > $dev
 
 sleep 1
 
-./test-easymotor-v3
+test-easymotor-v3
 
 exit $?
index 8953f90045f02017b4063af8922b89f14385d92d..71db2c16688ef03f2694da00cb89dfbfaad693e8 100755 (executable)
@@ -15,7 +15,7 @@ else
 fi
 
 VERSION=1
-REPO=~/altusmetrumllc/Binaries
+REPO=/usr/share/altos/mfg-fw
 PRODUCT=EasyTimer
 
 echo "$PRODUCT v$VERSION Turn-On and Calibration Program"
@@ -67,12 +67,12 @@ echo 'E 0' > $dev
 
 failed=1
 while [ $failed = 1 ]; do
-    ../ao-tools/ao-cal-accel/ao-cal-accel $dev
+    ao-cal-accel $dev
     failed=$?
 done
 
 echo 'E 1' > $dev
 
-./test-easytimer
+test-easytimer
 
 exit $?
index af72bab869575ed650f26a74ec633356c9bcaf2b..7bb5250523b5dcfc46dadd5b3669185c58e7044d 100755 (executable)
@@ -15,7 +15,7 @@ else
 fi
 
 VERSION=4.0
-REPO=~/altusmetrumllc/Binaries
+REPO=/usr/share/altos/mfg-fw
 PRODUCT=TeleBT
 
 echo "$PRODUCT v$VERSION Turn-On and Calibration Program"
@@ -66,7 +66,7 @@ esac
 
 CALFILE=cal-$SERIAL.txt
 
-../ao-tools/ao-cal-freq/ao-cal-freq --nosave --output=$CALFILE --tty=$dev
+ao-cal-freq --nosave --output=$CALFILE --tty=$dev
 
 CAL_VALUE=`cat $CALFILE`
 echo $SERIAL","$CAL_VALUE >> cal_values
diff --git a/ao-bringup/turnon_telebt_v1 b/ao-bringup/turnon_telebt_v1
deleted file mode 100755 (executable)
index f4100ae..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-#!/bin/sh
-
-if [ -x ../ao-tools/ao-load/ao-load ]; then
-       AOLOAD=../ao-tools/ao-load/ao-load
-elif [ -x /usr/bin/ao-load ]; then
-       AOLOAD=/usr/bin/ao-load
-else
-       echo "Can't find ao-load!  Aborting."
-       exit 1
-fi
-
-if [ -x ../ao-tools/ao-rawload/ao-rawload ]; then
-       RAWLOAD=../ao-tools/ao-rawload/ao-rawload
-elif [ -x /usr/bin/ao-rawload ]; then
-       RAWLOAD=/usr/bin/ao-rawload
-else
-       echo "Can't find ao-rawload!  Aborting."
-       exit 1
-fi
-
-echo "TeleBT v1.1 Turn-On and Calibration Program"
-echo "Copyright 2013 by Bdale Garbee.  Released under GPL v2"
-echo
-echo "Expectations:"
-echo "\tTeleBT v1.1 powered from USB"
-echo "\t\twith TeleDonlge (on /dev/ttyACM0) cabled to debug header"
-echo "\t\twith coax from SMA to frequency counter"
-echo
-echo -n "TeleBT serial number: "
-read SERIAL
-
-echo $RAWLOAD
-
-case $USER in
-    bdale)
-       DONGLE=100
-       ;;
-    keithp)
-       DONGLE=186
-       ;;
-    *)
-       echo "Unknow user"
-       exit 1
-       ;;
-esac
-
-$RAWLOAD -D $DONGLE -r ao_led_blink.ihx
-echo "LEDs should be blinking"
-sleep 5
-
-$RAWLOAD -D $DONGLE -r ao_radio_xmit.ihx
-echo -n "Generating RF carrier.  Please enter measured frequency: "
-read FREQ
-
-CAL_VALUE=`nickle -e "floor(434.55 / $FREQ * 1186611 + 0.5)"`
-
-echo "Programming flash with cal value " $CAL_VALUE
-$AOLOAD -D $DONGLE --cal $CAL_VALUE ~/altusmetrumllc/Binaries/telebt-v1.0*.ihx $SERIAL
-
-echo "Serial number "$SERIAL" programmed with RF cal value "$CAL_VALUE
-echo $SERIAL","$CAL_VALUE >> cal_values
-echo "Unplug debug cable, power cycle, cu to the board, confirm freq and record power"
index 509814d367bac83dadc8ff7d239d15189c202be9..5bedf3dd2d93ea366ea7aa027e0f39cc36bc08e7 100755 (executable)
@@ -15,7 +15,7 @@ else
 fi
 
 VERSION=3.0
-REPO=~/altusmetrumllc/Binaries
+REPO=/usr/share/altos/mfg-fw
 
 echo "TeleBT v$VERSION Turn-On and Calibration Program"
 echo "Copyright 2015 by Bdale Garbee.  Released under GPL v2"
@@ -52,7 +52,7 @@ esac
 
 echo 'E 0' > $dev
 
-SERIAL=$SERIAL ./cal-freq $dev
+SERIAL=$SERIAL cal-freq $dev
 
 echo 'E 1' > $dev
 
index 983f1010340004b69b1c7e0a74f2d5e61118a5e6..08f05f6d155e60bf9a21490f1181021e288ae757 100755 (executable)
@@ -1,8 +1,6 @@
 #!/bin/sh
 
-if [ -x ../ao-tools/ao-flash/ao-flash-lpc ]; then
-       FLASH_LPC=../ao-tools/ao-flash/ao-flash-lpc
-elif [ -x /usr/bin/ao-flash-lpc ]; then
+if [ -x /usr/bin/ao-flash-lpc ]; then
        FLASH_LPC=/usr/bin/ao-flash-lpc
 else
        echo "Can't find ao-flash-lpc!  Aborting."
@@ -44,7 +42,7 @@ case $# in
        ;;
 esac
 
-BINARIES=$HOME/altusmetrumllc/Binaries
+BINARIES=/usr/share/altos/mfg-fw
 
 LOADER="$BINARIES/loaders/$PRODUCT-v$VERSION-"*.elf
 ALTOS="$BINARIES/$PRODUCT-v$VERSION"*.elf
@@ -73,7 +71,7 @@ echo 'E 0' > $dev
 
 CALFILE=cal-$SERIAL.txt
 
-../ao-tools/ao-cal-freq/ao-cal-freq --verbose --nosave --output=$CALFILE --tty=$dev
+ao-cal-freq --verbose --nosave --output=$CALFILE --tty=$dev
 
 case $? in
     0)
diff --git a/ao-bringup/turnon_teledongle_v0.2 b/ao-bringup/turnon_teledongle_v0.2
deleted file mode 100755 (executable)
index 20c8798..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-#!/bin/sh
-
-if [ -x ../ao-tools/ao-load/ao-load ]; then
-       AOLOAD=../ao-tools/ao-load/ao-load
-elif [ -x /usr/bin/ao-load ]; then
-       AOLOAD=/usr/bin/ao-load
-else
-       echo "Can't find ao-load!  Aborting."
-       exit 1
-fi
-
-if [ -x ../ao-tools/ao-rawload/ao-rawload ]; then
-       RAWLOAD=../ao-tools/ao-rawload/ao-rawload
-elif [ -x /usr/bin/ao-rawload ]; then
-       RAWLOAD=/usr/bin/ao-rawload
-else
-       echo "Can't find ao-rawload!  Aborting."
-       exit 1
-fi
-
-echo "TeleDongle v0.2 Turn-On and Calibration Program"
-echo "Copyright 2010 by Bdale Garbee.  Released under GPL v2"
-echo
-echo "Expectations:"
-echo "\tTeleDongle v0.2 powered from USB"
-echo "\t\twith TIdongle (on /dev/ttyACM0) cabled to debug header"
-echo "\t\twith coax from SMA to frequency counter"
-echo
-echo -n "TeleDongle serial number: "
-read SERIAL
-
-echo $RAWLOAD
-
-case $USER in
-    bdale)
-       programmer=100
-       ;;
-    keithp)
-       programmer=186
-       ;;
-esac
-
-$RAWLOAD -D $programmer -r ao_led_blink.ihx
-echo "LEDs should be blinking"
-sleep 5
-
-$RAWLOAD -D $programmer -r ao_radio_xmit.ihx
-echo -n "Generating RF carrier.  Please enter measured frequency: "
-read FREQ
-
-CAL_VALUE=`nickle -e "floor(434.55 / $FREQ * 1186611 + 0.5)"`
-
-echo "Programming flash with cal value " $CAL_VALUE
-$AOLOAD -D $programmer --cal $CAL_VALUE ~/altusmetrumllc/Binaries/teledongle-v0.2*.ihx $SERIAL
-
-echo "Serial number "$SERIAL" programmed with RF cal value "$CAL_VALUE
-echo $SERIAL","$CAL_VALUE >> cal_values
-echo "Unplug and replug USB, cu to the board, confirm freq and record power"
index 871c357fd5ac52673924fe7c26f11d4e5c6d4470..38744c025189b7275418b4935df0be514a7b0756 100755 (executable)
@@ -2,7 +2,7 @@
 
 PRODUCT=TeleFireEight
 VERSION=2.0
-REPO=~/altusmetrumllc/Binaries
+REPO=/usr/share/altos/mfg-fw
 
 if [ -x /usr/bin/ao-flash-stm ]; then
        FLASH_STM=/usr/bin/ao-flash-stm
@@ -65,7 +65,7 @@ case "$dev" in
 esac
 
 echo 'E 0' > $dev
-SERIAL=$SERIAL ./cal-freq $dev
+SERIAL=$SERIAL cal-freq $dev
 echo 'E 1' > $dev
 
 echo "$PRODUCT-v$VERSION" serial "$SERIAL" is ready for integration and testing
index 45f8fcf5a847d14842120198cb8cf0c651edb555..5a3f0d530dd4ea8b0b2b22e33722675e71e0e1e1 100755 (executable)
@@ -1,8 +1,6 @@
 #!/bin/sh
 
-if [ -x ../ao-tools/ao-flash/ao-flash-lpc ]; then
-        FLASH_LPC=../ao-tools/ao-flash/ao-flash-lpc
-elif [ -x /usr/bin/ao-flash-lpc ]; then
+if [ -x /usr/bin/ao-flash-lpc ]; then
         FLASH_LPC=/usr/bin/ao-flash-lpc
 else
         echo "Can't find ao-flash-lpc!  Aborting."
@@ -17,6 +15,7 @@ else
 fi
 
 PRODUCT=TeleGPS
+REPO=/usr/share/altos/mfg-fw
 VERSION=3.0
 BASE=`echo $PRODUCT | tr 'A-Z' 'a-z'`
 echo $FILE
@@ -47,8 +46,8 @@ esac
 #
 # Use released versions of everything
 #
-FLASH_FILE=~/altusmetrumllc/Binaries/loaders/telegps-v3.0-altos-flash-*.elf
-ALTOS_FILE=~/altusmetrumllc/Binaries/telegps-v3.0-*.elf
+FLASH_FILE=$REPO/loaders/telegps-v3.0-altos-flash-*.elf
+ALTOS_FILE=$REPO/telegps-v3.0-*.elf
 
 echo $FLASH_LPC $FLASH_FILE
 
@@ -75,10 +74,10 @@ case "$dev" in
 esac
 
 CALFILE=cal-$SERIAL.txt
-../ao-tools/ao-cal-freq/ao-cal-freq --output=$CALFILE --tty=$dev
+ao-cal-freq --output=$CALFILE --tty=$dev
 CAL_VALUE=`cat $CALFILE`
 echo $SERIAL","$CAL_VALUE >> cal_values
 
-./test-telegps-v3
+test-telegps-v3
 
 exit $?
index 5341acc7b1d33b678c9eb9f2946ac131f080acd6..8ce1e8b680c1f08b8bd029768c658086a17bcf3f 100755 (executable)
@@ -1,8 +1,6 @@
 #!/bin/sh
 
-if [ -x ../ao-tools/ao-flash/ao-flash-lpc ]; then
-        FLASH_LPC=../ao-tools/ao-flash/ao-flash-lpc
-elif [ -x /usr/bin/ao-flash-lpc ]; then
+if [ -x /usr/bin/ao-flash-lpc ]; then
         FLASH_LPC=/usr/bin/ao-flash-lpc
 else
         echo "Can't find ao-flash-lpc!  Aborting."
@@ -18,6 +16,7 @@ fi
 
 PRODUCT=TeleGPS
 VERSION=1.0
+REPO=/usr/share/altos/mfg-fw
 BASE=`echo $PRODUCT | tr 'A-Z' 'a-z'`
 echo $FILE
 
@@ -47,8 +46,8 @@ esac
 #
 # Use released versions of everything
 #
-FLASH_FILE=~/altusmetrumllc/Binaries/loaders/telegps-v1.0-altos-flash-*.elf
-ALTOS_FILE=~/altusmetrumllc/Binaries/telegps-v1.0-*.elf
+FLASH_FILE=$REPO/loaders/telegps-v1.0-altos-flash-*.elf
+ALTOS_FILE=$REPO/telegps-v1.0-*.elf
 
 echo $FLASH_LPC $FLASH_FILE
 
@@ -74,8 +73,8 @@ case "$dev" in
         ;;
 esac
 
-SERIAL=$SERIAL ./cal-freq $dev
+SERIAL=$SERIAL cal-freq $dev
 
-./test-telegps-v1
+test-telegps-v1
 
 exit $?
index 5e4cd616f007c175ccf55c436ecbbe02dc13ef57..2a1653df48cfaabdf60fc0cab5265202388c263d 100755 (executable)
@@ -16,7 +16,7 @@ fi
 
 PRODUCT=TeleGPS
 VERSION=2.0
-REPO=~/altusmetrumllc/Binaries
+REPO=/usr/share/altos/mfg-fw
 
 #BASE=`echo $PRODUCT | tr 'A-Z' 'a-z'`
 #echo $FILE
@@ -69,8 +69,8 @@ case "$dev" in
         ;;
 esac
 
-SERIAL=$SERIAL ./cal-freq $dev
+SERIAL=$SERIAL cal-freq $dev
 
-./test-telegps-v2
+test-telegps-v2
 
 exit $?
index dafa2131a64aa0b6d36820d1b66ab1c22e5ab180..6151957678f156251671c07879b82f5770c9acf9 100755 (executable)
@@ -15,7 +15,7 @@ else
 fi
 
 VERSION=2.0
-REPO=~/altusmetrumllc/Binaries
+REPO=/usr/share/altos/mfg-fw
 PRODUCT=TeleLCO
 
 echo "$PRODUCT v$VERSION Turn-On and Calibration Program"
@@ -66,7 +66,7 @@ esac
 
 echo 'E 0' > $dev
 
-SERIAL=$SERIAL ./cal-freq $dev
+SERIAL=$SERIAL cal-freq $dev
 
 echo 'E 1' > $dev
 
index b433133b6d5911842ab25e57d37c05c94f103011..897acb3545dab6010b70839187d5238493cdfb13 100755 (executable)
@@ -15,7 +15,7 @@ else
 fi
 
 VERSION=6.0
-REPO=~/altusmetrumllc/Binaries
+REPO=/usr/share/altos/mfg-fw
 PRODUCT=TeleMega
 
 echo "$PRODUCT v$VERSION Turn-On and Calibration Program"
@@ -66,16 +66,16 @@ esac
 
 echo 'E 0' > $dev
 
-SERIAL=$SERIAL ./cal-freq $dev
+SERIAL=$SERIAL cal-freq $dev
 
 failed=1
 while [ $failed = 1 ]; do
-    ../ao-tools/ao-cal-accel/ao-cal-accel $dev
+    ao-cal-accel $dev
     failed=$?
 done
 
 echo 'E 1' > $dev
 
-./test-telemega-v6.0
+test-telemega-v6.0
 
 exit $?
index a8fb8c862b1dbc4742c8f127a1884c98faa6086f..298c38756abff3aa41cace0874f1b9c445f6a814 100755 (executable)
@@ -15,7 +15,7 @@ else
 fi
 
 VERSION=1.0
-REPO=~/altusmetrumllc/Binaries
+REPO=/usr/share/altos/mfg-fw
 
 echo "TeleMega v$VERSION Turn-On and Calibration Program"
 echo "Copyright 2014 by Bdale Garbee.  Released under GPL v2"
@@ -52,12 +52,12 @@ esac
 
 echo 'E 0' > $dev
 
-SERIAL=$SERIAL ./cal-freq $dev
+SERIAL=$SERIAL cal-freq $dev
 
-../ao-tools/ao-cal-accel/ao-cal-accel $dev
+ao-cal-accel $dev
 
 echo 'E 1' > $dev
 
-./test-telemega-v1.0
+test-telemega-v1.0
 
 exit $?
index 3c80dd94dca449e88d77350c689b8245fd8a4ee3..def71d75938e45fd69f0b797b722af7036b3fbaa 100755 (executable)
@@ -15,7 +15,7 @@ else
 fi
 
 VERSION=2.0
-REPO=~/altusmetrumllc/Binaries
+REPO=/usr/share/altos/mfg-fw
 PRODUCT=TeleMega
 
 echo "$PRODUCT v$VERSION Turn-On and Calibration Program"
@@ -66,16 +66,16 @@ esac
 
 echo 'E 0' > $dev
 
-SERIAL=$SERIAL ./cal-freq $dev
+SERIAL=$SERIAL cal-freq $dev
 
 failed=1
 while [ $failed = 1 ]; do
-    ../ao-tools/ao-cal-accel/ao-cal-accel $dev
+    ao-cal-accel $dev
     failed=$?
 done
 
 echo 'E 1' > $dev
 
-./test-telemega-v2.0
+test-telemega-v2.0
 
 exit $?
index 272a69d7536b17f6789fa040d87d70767080c02a..3e9f3a3e4efb48d89bad5d147440271009c806c4 100755 (executable)
@@ -15,7 +15,7 @@ else
 fi
 
 VERSION=3.0
-REPO=~/altusmetrumllc/Binaries
+REPO=/usr/share/altos/mfg-fw
 PRODUCT=TeleMega
 
 echo "$PRODUCT v$VERSION Turn-On and Calibration Program"
@@ -66,16 +66,16 @@ esac
 
 echo 'E 0' > $dev
 
-SERIAL=$SERIAL ./cal-freq $dev
+SERIAL=$SERIAL cal-freq $dev
 
 failed=1
 while [ $failed = 1 ]; do
-    ../ao-tools/ao-cal-accel/ao-cal-accel $dev
+    ao-cal-accel $dev
     failed=$?
 done
 
 echo 'E 1' > $dev
 
-./test-telemega-v3.0
+test-telemega-v3.0
 
 exit $?
index 67f4fb0cfc511b21113d9b516b98510508522791..f6d3d255be26e6f798e008c399b16bf5cf806c03 100755 (executable)
@@ -15,7 +15,7 @@ else
 fi
 
 VERSION=4.0
-REPO=~/altusmetrumllc/Binaries
+REPO=/usr/share/altos/mfg-fw
 PRODUCT=TeleMega
 
 echo "$PRODUCT v$VERSION Turn-On and Calibration Program"
@@ -66,16 +66,16 @@ esac
 
 echo 'E 0' > $dev
 
-SERIAL=$SERIAL ./cal-freq $dev
+SERIAL=$SERIAL cal-freq $dev
 
 failed=1
 while [ $failed = 1 ]; do
-    ../ao-tools/ao-cal-accel/ao-cal-accel $dev
+    ao-cal-accel $dev
     failed=$?
 done
 
 echo 'E 1' > $dev
 
-./test-telemega
+test-telemega
 
 exit $?
index eb26090baff596eed11fd67a947c93fc653bef6a..eed8b091e9666b69bfec217fa2b88e42c99e8372 100755 (executable)
@@ -15,7 +15,7 @@ else
 fi
 
 VERSION=5.0
-REPO=~/altusmetrumllc/Binaries
+REPO=/usr/share/altos/mfg-fw
 PRODUCT=TeleMega
 
 echo "$PRODUCT v$VERSION Turn-On and Calibration Program"
@@ -66,16 +66,16 @@ esac
 
 echo 'E 0' > $dev
 
-SERIAL=$SERIAL ./cal-freq $dev
+SERIAL=$SERIAL cal-freq $dev
 
 failed=1
 while [ $failed = 1 ]; do
-    ../ao-tools/ao-cal-accel/ao-cal-accel $dev
+    ao-cal-accel $dev
     failed=$?
 done
 
 echo 'E 1' > $dev
 
-./test-telemega-v5.0
+test-telemega-v5.0
 
 exit $?
index bb455c988d6bd8991e61734435ba5bba2f35f08f..04e8a4017123c29b833d8717f6dba47e029f8dec 100755 (executable)
@@ -15,6 +15,7 @@ else
 fi
 
 VERSION=4.0
+REPO=/usr/share/altos/mfg-fw
 PRODUCT=TeleMetrum
 
 echo "$PRODUCT v$VERSION Turn-On and Calibration Program"
@@ -44,11 +45,11 @@ esac
 
 echo $FLASH_STM
 
-$FLASH_STM ~/altusmetrumllc/Binaries/loaders/telemetrum-v$VERSION-*.elf || exit 1
+$FLASH_STM $REPO/loaders/telemetrum-v$VERSION-*.elf || exit 1
 
 sleep 3
 
-$USBLOAD --serial=$SERIAL ~/altusmetrumllc/Binaries/telemetrum-v$VERSION-*.elf || exit 1
+$USBLOAD --serial=$SERIAL $REPO/telemetrum-v$VERSION-*.elf || exit 1
 
 sleep 5
 
@@ -66,16 +67,16 @@ esac
 
 echo 'E 0' > $dev
 
-SERIAL=$SERIAL ./cal-freq $dev
+SERIAL=$SERIAL cal-freq $dev
 
 failed=1
 while [ $failed = 1 ]; do
-    ../ao-tools/ao-cal-accel/ao-cal-accel $dev
+    ao-cal-accel $dev
     failed=$?
 done
 
 echo 'E 1' > $dev
 
-./test-telemetrum-v4.0
+test-telemetrum-v4.0
 
 exit $?
diff --git a/ao-bringup/turnon_telemetrum_v1.1 b/ao-bringup/turnon_telemetrum_v1.1
deleted file mode 100755 (executable)
index 830d7ed..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/bin/sh
-
-if [ -x ../ao-tools/ao-load/ao-load ]; then
-       AOLOAD=../ao-tools/ao-load/ao-load
-elif [ -x /usr/bin/ao-load ]; then
-       AOLOAD=/usr/bin/ao-load
-else
-       echo "Can't find ao-load!  Aborting."
-       exit 1
-fi
-
-if [ -x ../ao-tools/ao-rawload/ao-rawload ]; then
-       RAWLOAD=../ao-tools/ao-rawload/ao-rawload
-elif [ -x /usr/bin/ao-rawload ]; then
-       RAWLOAD=/usr/bin/ao-rawload
-else
-       echo "Can't find ao-rawload!  Aborting."
-       exit 1
-fi
-
-echo "TeleMetrum v1.1 Turn-On and Calibration Program"
-echo "Copyright 2010 by Bdale Garbee.  Released under GPL v2"
-echo
-echo "Expectations:"
-echo "\tTeleMetrum v1.1 powered from USB"
-echo "\t\twith TeleDongle (on /dev/ttyACM0) cabled to debug header"
-echo "\t\twith coax from UHF to frequency counter"
-echo
-echo -n "TeleMetrum serial number: "
-read SERIAL
-
-echo $RAWLOAD
-
-$RAWLOAD --device 100 -r ao_led_blink.ihx
-echo "the red LED should be blinking"
-sleep 5
-
-$RAWLOAD --device 100 -r ao_radio_xmit.ihx
-echo -n "Generating RF carrier.  Please enter measured frequency: "
-read FREQ
-
-CAL_VALUE=`nickle -e "floor(434.55 / $FREQ * 1186611 + 0.5)"`
-
-echo "Programming flash with cal value " $CAL_VALUE
-$AOLOAD --device 100 --cal $CAL_VALUE \
-       ~/altusmetrumllc/Binaries/telemetrum-v1.1*.ihx $SERIAL
-
-echo "Serial number "$SERIAL" programmed with RF cal value "$CAL_VALUE
-echo "Unplug and replug USB, cu to the board, confirm freq and record power"
index e2d2f532a58ba2f4b62563647fa6af8d6e71a79c..349299ff718e517169325ed06a7f39233d818f4b 100755 (executable)
@@ -15,6 +15,7 @@ else
 fi
 
 VERSION=2.0
+REPO=/usr/share/altos/mfg-fw
 PRODUCT=TeleMetrum
 
 echo "$PRODUCT v$VERSION Turn-On and Calibration Program"
@@ -44,11 +45,11 @@ esac
 
 echo $FLASH_STM
 
-$FLASH_STM ~/altusmetrumllc/Binaries/loaders/telemetrum-v$VERSION-*.elf || exit 1
+$FLASH_STM $REPO/loaders/telemetrum-v$VERSION-*.elf || exit 1
 
 sleep 3
 
-$USBLOAD --serial=$SERIAL ~/altusmetrumllc/Binaries/telemetrum-v$VERSION-*.elf || exit 1
+$USBLOAD --serial=$SERIAL $REPO/telemetrum-v$VERSION-*.elf || exit 1
 
 sleep 5
 
@@ -66,16 +67,16 @@ esac
 
 echo 'E 0' > $dev
 
-SERIAL=$SERIAL ./cal-freq $dev
+SERIAL=$SERIAL cal-freq $dev
 
 failed=1
 while [ $failed = 1 ]; do
-    ../ao-tools/ao-cal-accel/ao-cal-accel $dev
+    ao-cal-accel $dev
     failed=$?
 done
 
 echo 'E 1' > $dev
 
-./test-telemetrum-v2.0
+test-telemetrum-v2.0
 
 exit $?
index 96de4ad471fd22753577401d976f233a14badfda..c7a026c99164e24c1188cb116f387c049e6f61a1 100755 (executable)
@@ -15,6 +15,7 @@ else
 fi
 
 VERSION=3.0
+REPO=/usr/share/altos/mfg-fw
 PRODUCT=TeleMetrum
 
 echo "$PRODUCT v$VERSION Turn-On and Calibration Program"
@@ -44,11 +45,11 @@ esac
 
 echo $FLASH_STM
 
-$FLASH_STM ~/altusmetrumllc/Binaries/loaders/telemetrum-v$VERSION-*.elf || exit 1
+$FLASH_STM $REPO/loaders/telemetrum-v$VERSION-*.elf || exit 1
 
 sleep 3
 
-$USBLOAD --serial=$SERIAL ~/altusmetrumllc/Binaries/telemetrum-v$VERSION-*.elf || exit 1
+$USBLOAD --serial=$SERIAL $REPO/telemetrum-v$VERSION-*.elf || exit 1
 
 sleep 5
 
@@ -66,16 +67,16 @@ esac
 
 echo 'E 0' > $dev
 
-SERIAL=$SERIAL ./cal-freq $dev
+SERIAL=$SERIAL cal-freq $dev
 
 failed=1
 while [ $failed = 1 ]; do
-    ../ao-tools/ao-cal-accel/ao-cal-accel $dev
+    ao-cal-accel $dev
     failed=$?
 done
 
 echo 'E 1' > $dev
 
-./test-telemetrum-v3.0
+test-telemetrum-v3.0
 
 exit $?
index 678251f48d8caf5a0b0dba23d48ac7688a786027..0b56503cc4579811e50993af05b34ff96d385c7f 100755 (executable)
@@ -15,6 +15,7 @@ else
 fi
 
 VERSION=3.0
+REPO=/usr/share/altos/mfg-fw
 PRODUCT=TeleMini
 
 echo "$PRODUCT v$VERSION Turn-On and Calibration Program"
@@ -40,10 +41,8 @@ case $# in
        ;;
 esac
 
-FLASH_FILE=~/altusmetrumllc/Binaries/loaders/telemini-v$VERSION-altos-flash-*.bin
-ALTOS_FILE=~/altusmetrumllc/Binaries/telemini-v$VERSION-*.elf
-#FLASH_FILE=../src/telemini-v3.0/flash-loader/telemini-v$VERSION-altos-flash-*.bin
-#ALTOS_FILE=../src/telemini-v3.0/telemini-v$VERSION-*.elf
+FLASH_FILE=$REPO/loaders/telemini-v$VERSION-altos-flash-*.bin
+ALTOS_FILE=$REPO/telemini-v$VERSION-*.elf
 
 if lsusb -d 0483:df11 | grep -q STM; then
     $DFU_UTIL -a 0 -s 0x08000000:leave -D $FLASH_FILE || exit 1
@@ -69,10 +68,10 @@ esac
 
 echo 'E 0' > $dev
 
-SERIAL=$SERIAL ./cal-freq $dev
+SERIAL=$SERIAL cal-freq $dev
 
 echo 'E 1' > $dev
 
-./test-telemini
+test-telemini
 
 exit $?
diff --git a/ao-bringup/turnon_telemini_v2 b/ao-bringup/turnon_telemini_v2
new file mode 100755 (executable)
index 0000000..eb13495
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/sh
+
+REPO=/usr/share/altos/mfg-fw
+
+if [ -x /usr/bin/ao-load ]; then
+       AOLOAD=/usr/bin/ao-load
+else
+       echo "Can't find ao-load!  Aborting."
+       exit 1
+fi
+
+if [ -x /usr/bin/ao-rawload ]; then
+       RAWLOAD=/usr/bin/ao-rawload
+else
+       echo "Can't find ao-rawload!  Aborting."
+       exit 1
+fi
+
+echo "TeleMini v2.0 Turn-On and Calibration Program"
+echo "Copyright 2011 by Bdale Garbee.  Released under GPL v2"
+echo "Copyright 2013 by Keith Packard.  Released under GPL v2"
+echo
+echo "Expectations:"
+echo "\tTeleMini v2.0 powered from LiPo"
+echo "\t\twith TeleDongle (on /dev/ttyACM0) cabled to debug header"
+echo "\t\twith frequency counter able to sample RF output"
+echo
+echo -n "TeleMini serial number: "
+read SERIAL
+
+echo $RAWLOAD
+
+#TTY=/dev/ttyACM0
+PROGRAMMER="-D 186"
+BIN=$REPO/telemini-v2.0*.ihx
+
+$RAWLOAD $PROGRAMMER -r ao_led_blink.ihx
+echo "LEDs should be blinking"
+sleep 5
+
+$RAWLOAD $PROGRAMMER -r ao_radio_xmit.ihx
+echo -n "Generating RF carrier.  Please enter measured frequency: "
+read FREQ
+
+CAL_VALUE=`nickle -e "floor(434.55 / $FREQ * 1186611 + 0.5)"`
+
+echo "Programming flash with cal value " $CAL_VALUE
+$AOLOAD $PROGRAMMER --cal=$CAL_VALUE $BIN $SERIAL
+
+echo "Serial number "$SERIAL" programmed with RF cal value "$CAL_VALUE
+echo "Unplug and replug USB, cu to the board, confirm freq and record power"
diff --git a/ao-bringup/turnon_teleminiv2 b/ao-bringup/turnon_teleminiv2
deleted file mode 100755 (executable)
index 0ce73cb..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-#!/bin/sh
-
-if [ -x ../ao-tools/ao-load/ao-load ]; then
-       AOLOAD=../ao-tools/ao-load/ao-load
-elif [ -x /usr/bin/ao-load ]; then
-       AOLOAD=/usr/bin/ao-load
-else
-       echo "Can't find ao-load!  Aborting."
-       exit 1
-fi
-
-if [ -x ../ao-tools/ao-rawload/ao-rawload ]; then
-       RAWLOAD=../ao-tools/ao-rawload/ao-rawload
-elif [ -x /usr/bin/ao-rawload ]; then
-       RAWLOAD=/usr/bin/ao-rawload
-else
-       echo "Can't find ao-rawload!  Aborting."
-       exit 1
-fi
-
-echo "TeleMini v2.0 Turn-On and Calibration Program"
-echo "Copyright 2011 by Bdale Garbee.  Released under GPL v2"
-echo "Copyright 2013 by Keith Packard.  Released under GPL v2"
-echo
-echo "Expectations:"
-echo "\tTeleMini v2.0 powered from LiPo"
-echo "\t\twith TeleDongle (on /dev/ttyACM0) cabled to debug header"
-echo "\t\twith frequency counter able to sample RF output"
-echo
-echo -n "TeleMini serial number: "
-read SERIAL
-
-echo $RAWLOAD
-
-#TTY=/dev/ttyACM0
-PROGRAMMER="-D 186"
-BIN=../src/telemini-v2.0*.ihx
-
-$RAWLOAD $PROGRAMMER -r ao_led_blink.ihx
-echo "LEDs should be blinking"
-sleep 5
-
-$RAWLOAD $PROGRAMMER -r ao_radio_xmit.ihx
-echo -n "Generating RF carrier.  Please enter measured frequency: "
-read FREQ
-
-CAL_VALUE=`nickle -e "floor(434.55 / $FREQ * 1186611 + 0.5)"`
-
-echo "Programming flash with cal value " $CAL_VALUE
-$AOLOAD $PROGRAMMER --cal=$CAL_VALUE $BIN $SERIAL
-
-echo "Serial number "$SERIAL" programmed with RF cal value "$CAL_VALUE
-echo "Unplug and replug USB, cu to the board, confirm freq and record power"
diff --git a/ao-bringup/turnon_teleshield b/ao-bringup/turnon_teleshield
deleted file mode 100755 (executable)
index e9f651f..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/bin/sh
-
-if [ -x ../ao-tools/ao-load/ao-load ]; then
-       AOLOAD=../ao-tools/ao-load/ao-load
-elif [ -x /usr/bin/ao-load ]; then
-       AOLOAD=/usr/bin/ao-load
-else
-       echo "Can't find ao-load!  Aborting."
-       exit 1
-fi
-
-if [ -x ../ao-tools/ao-rawload/ao-rawload ]; then
-       RAWLOAD=../ao-tools/ao-rawload/ao-rawload
-elif [ -x /usr/bin/ao-rawload ]; then
-       RAWLOAD=/usr/bin/ao-rawload
-else
-       echo "Can't find ao-rawload!  Aborting."
-       exit 1
-fi
-
-echo "TeleShield v0.1 Turn-On and Calibration Program"
-echo "Copyright 2012 by Bdale Garbee.  Released under GPL v2"
-echo
-echo "Expectations:"
-echo "\tTeleShield v0.1 powered from USB"
-echo "\t\twith TeleDongle (on /dev/ttyACM0) cabled to debug header"
-echo "\t\twith coax from SMA to frequency counter"
-echo
-echo -n "TeleShield serial number: "
-read SERIAL
-
-echo $RAWLOAD
-
-$RAWLOAD -D 100 -r ao_led_blink.ihx
-echo "LEDs should be blinking"
-sleep 5
-
-$RAWLOAD -D 100 -r ao_radio_xmit.ihx
-echo -n "Generating RF carrier.  Please enter measured frequency: "
-read FREQ
-
-CAL_VALUE=`nickle -e "floor(434.55 / $FREQ * 1186611 + 0.5)"`
-
-echo "Programming flash with cal value " $CAL_VALUE
-$AOLOAD -D 100 --cal $CAL_VALUE /home/bdale/debian/altos/src/teleshield-v0.1/*.ihx $SERIAL
-
-echo "Serial number "$SERIAL" programmed with RF cal value "$CAL_VALUE
-echo "Unplug and replug USB, cu to the board, confirm freq and record power"
diff --git a/ao-bringup/turnon_teleterra b/ao-bringup/turnon_teleterra
deleted file mode 100755 (executable)
index b63da2f..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/bin/sh
-
-if [ -x ../ao-tools/ao-load/ao-load ]; then
-       AOLOAD=../ao-tools/ao-load/ao-load
-elif [ -x /usr/bin/ao-load ]; then
-       AOLOAD=/usr/bin/ao-load
-else
-       echo "Can't find ao-load!  Aborting."
-       exit 1
-fi
-
-if [ -x ../ao-tools/ao-rawload/ao-rawload ]; then
-       RAWLOAD=../ao-tools/ao-rawload/ao-rawload
-elif [ -x /usr/bin/ao-rawload ]; then
-       RAWLOAD=/usr/bin/ao-rawload
-else
-       echo "Can't find ao-rawload!  Aborting."
-       exit 1
-fi
-
-echo "TeleTerra v0.2 Turn-On and Calibration Program"
-echo "Copyright 2012 by Bdale Garbee.  Released under GPL v2"
-echo
-echo "Expectations:"
-echo "\tTeleTerra v0.2 powered from USB"
-echo "\t\twith TeleDongle (on /dev/ttyACM0) cabled to debug header"
-echo "\t\twith coax from SMA to frequency counter"
-echo
-echo -n "TeleTerra serial number: "
-read SERIAL
-
-echo $RAWLOAD
-
-$RAWLOAD -D 100 -r ao_led_blink.ihx
-echo "LEDs should be blinking"
-sleep 5
-
-$RAWLOAD -D 100 -r ao_radio_xmit.ihx
-echo -n "Generating RF carrier.  Please enter measured frequency: "
-read FREQ
-
-CAL_VALUE=`nickle -e "floor(434.55 / $FREQ * 1186611 + 0.5)"`
-
-echo "Programming flash with cal value " $CAL_VALUE
-$AOLOAD -D 100 --cal $CAL_VALUE /home/bdale/debian/altos/src/teleterra-v0.2/*.ihx $SERIAL
-
-echo "Serial number "$SERIAL" programmed with RF cal value "$CAL_VALUE
-echo "Unplug and replug USB, cu to the board, confirm freq and record power"