diff options
author | px4dev <px4@purgatory.org> | 2013-08-02 22:32:22 -0700 |
---|---|---|
committer | px4dev <px4@purgatory.org> | 2013-08-02 22:32:22 -0700 |
commit | ac1725cea6357ff715fbb31428ab5fe6746b3348 (patch) | |
tree | e769a1f38c7b6f863a1f4914f049dcc04fc0a627 /nuttx/configs/px4fmu-v1/tools/upload.sh | |
parent | 8a17ea467319e86a78e210b4c9774105df2bc510 (diff) | |
download | px4-nuttx-ac1725cea6357ff715fbb31428ab5fe6746b3348.tar.gz px4-nuttx-ac1725cea6357ff715fbb31428ab5fe6746b3348.tar.bz2 px4-nuttx-ac1725cea6357ff715fbb31428ab5fe6746b3348.zip |
All PX4 configs move out into the PX4 tree proper
Diffstat (limited to 'nuttx/configs/px4fmu-v1/tools/upload.sh')
-rwxr-xr-x | nuttx/configs/px4fmu-v1/tools/upload.sh | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/nuttx/configs/px4fmu-v1/tools/upload.sh b/nuttx/configs/px4fmu-v1/tools/upload.sh deleted file mode 100755 index 4e6597b3a..000000000 --- a/nuttx/configs/px4fmu-v1/tools/upload.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/sh -# -# Wrapper to upload a PX4 firmware binary -# -TOOLS=`dirname $0` -MKFW=${TOOLS}/px_mkfw.py -UPLOAD=${TOOLS}/px_uploader.py - -BINARY=nuttx.bin -PAYLOAD=nuttx.px4 -PORTS="/dev/tty.usbmodemPX1,/dev/tty.usbmodemPX2,/dev/tty.usbmodemPX3,/dev/tty.usbmodemPX4,/dev/tty.usbmodem1,/dev/tty.usbmodem2,/dev/tty.usbmodem3,/dev/tty.usbmodem4" - -function abort() { - echo "ABORT: $*" - exit 1 -} - -if [ ! -f ${MKFW} -o ! -f ${UPLOAD} ]; then - abort "Missing tools ${MKFW} and/or ${UPLOAD}" -fi -if [ ! -f ${BINARY} ]; then - abort "Missing nuttx binary in current directory." -fi - -rm -f ${PAYLOAD} -${MKFW} --board_id 5 --image ${BINARY} > ${PAYLOAD} -${UPLOAD} --port ${PORTS} ${PAYLOAD} |