aboutsummaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2014-07-12 19:23:07 +0200
committerLorenz Meier <lm@inf.ethz.ch>2014-07-12 19:23:07 +0200
commit01da782a8d5335f6bf91bb2d0303c4afdd25bf76 (patch)
treec953a2c778f5f34fa694e8d4412b787853124e2b /Tools
parent00af2d5a3dcf565c77948a2545865193a58ec3bf (diff)
parente6b5e3ae613e89189ac69cf0b174b10002d51068 (diff)
downloadpx4-firmware-01da782a8d5335f6bf91bb2d0303c4afdd25bf76.tar.gz
px4-firmware-01da782a8d5335f6bf91bb2d0303c4afdd25bf76.tar.bz2
px4-firmware-01da782a8d5335f6bf91bb2d0303c4afdd25bf76.zip
Merge pull request #1152 from PX4/sensor_drivers
Sensor drivers
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/check_submodules.sh10
-rwxr-xr-xTools/px_uploader.py7
2 files changed, 13 insertions, 4 deletions
diff --git a/Tools/check_submodules.sh b/Tools/check_submodules.sh
index a56de681f..cc6e7d1c0 100755
--- a/Tools/check_submodules.sh
+++ b/Tools/check_submodules.sh
@@ -1,13 +1,17 @@
#!/bin/sh
+[ -n "$GIT_SUBMODULES_ARE_EVIL" ] && {
+ # GIT_SUBMODULES_ARE_EVIL is set, meaning user doesn't want submodules
+ echo "Skipping submodules. NUTTX_SRC is set to $NUTTX_SRC"
+ exit 0
+}
+
if [ -d NuttX/nuttx ];
then
STATUSRETVAL=$(git submodule summary | grep -A20 -i "NuttX" | grep "<")
if [ -z "$STATUSRETVAL" ]; then
echo "Checked NuttX submodule, correct version found"
else
- echo ""
- echo ""
echo "NuttX sub repo not at correct version. Try 'git submodule update'"
echo "or follow instructions on http://pixhawk.org/dev/git/submodules"
echo ""
@@ -29,8 +33,6 @@ if [ -d mavlink/include/mavlink/v1.0 ];
if [ -z "$STATUSRETVAL" ]; then
echo "Checked mavlink submodule, correct version found"
else
- echo ""
- echo ""
echo "mavlink sub repo not at correct version. Try 'git submodule update'"
echo "or follow instructions on http://pixhawk.org/dev/git/submodules"
echo ""
diff --git a/Tools/px_uploader.py b/Tools/px_uploader.py
index 985e6ffd9..cd7884f6d 100755
--- a/Tools/px_uploader.py
+++ b/Tools/px_uploader.py
@@ -63,6 +63,7 @@ import zlib
import base64
import time
import array
+import os
from sys import platform as _platform
@@ -449,6 +450,12 @@ parser.add_argument('--baud', action="store", type=int, default=115200, help="Ba
parser.add_argument('firmware', action="store", help="Firmware file to be uploaded")
args = parser.parse_args()
+# warn people about ModemManager which interferes badly with Pixhawk
+if os.path.exists("/usr/sbin/ModemManager"):
+ print("==========================================================================================================")
+ print("WARNING: You should uninstall ModemManager as it conflicts with any non-modem serial device (like Pixhawk)")
+ print("==========================================================================================================")
+
# Load the firmware file
fw = firmware(args.firmware)
print("Loaded firmware for %x,%x, waiting for the bootloader..." % (fw.property('board_id'), fw.property('board_revision')))