forked from PX4/PX4-Autopilot
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Keep container running for px4 update in Jamal-pro
Removed old shell commands which were for the update with old bootloader and didn't work anymore. Added "tail -f /dev/null" to keep the container running in drone so the px4 binaries are available when the update happens.
- Loading branch information
1 parent
053f925
commit bef48a0
Showing
2 changed files
with
14 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
#!/bin/sh -e | ||
|
||
aframe="" | ||
if [ ! -z "$AIRFRAME" ]; then | ||
aframe="--airframe ${AIRFRAME}" | ||
# export px4 files if the container is started with the PX4_EXPORT_DIR | ||
if [ -n "$PX4_EXPORT_DIR" ]; then | ||
echo "Exporting PX4 files to $PX4_EXPORT_DIR" | ||
echo "/px4:" | ||
ls -al /px4/ | ||
echo "$PX4_EXPORT_DIR:" | ||
ls -al $PX4_EXPORT_DIR | ||
cp -r /px4/* $PX4_EXPORT_DIR | ||
echo "done" | ||
fi | ||
|
||
mode="" | ||
if [ ! -z "$FLIGHT_MODE" ]; then | ||
mode="--flightmode ${FLIGHT_MODE}" | ||
fi | ||
|
||
/bin/px_uploader.py --port=/dev/px4serial --udp-addr=192.168.200.101 --baud-flightstack=57600,115200,1000000,2000000 --baud-bootloader=2000000 px4_fmu-v5x_ssrc-*.px4 ssrc_saluki-v1_default-*.px4 ssrc_saluki-v2_default-*.px4 | ||
# keep the container running so px4 update can get the | ||
# px4 firmware files from the container | ||
tail -f /dev/null |