posix shell: required updates for RPi, bepob, ocpoc, eagle & exxcelsior

- RPi works
- the rest is not tested, and requires a bit more
  (such as uploading the bin/ directory)
This commit is contained in:
Beat Küng 2018-08-04 17:26:05 +02:00 committed by Lorenz Meier
parent 2454ef9240
commit d90ac975a7
11 changed files with 75 additions and 8 deletions

View File

@ -46,7 +46,7 @@ if (("${BOARD}" STREQUAL "eagle") OR ("${BOARD}" STREQUAL "excelsior"))
) )
add_custom_target(upload add_custom_target(upload
COMMAND ${PX4_SOURCE_DIR}/Tools/adb_upload.sh $<TARGET_FILE:px4> ${PX4_SOURCE_DIR}/posix-configs/eagle/flight/mainapp.config /home/linaro COMMAND ${PX4_SOURCE_DIR}/Tools/adb_upload.sh ${CMAKE_RUNTIME_OUTPUT_DIRECTORY} ${PX4_SOURCE_DIR}/posix-configs/eagle/flight/mainapp.config /home/linaro
DEPENDS px4 DEPENDS px4
COMMENT "uploading px4" COMMENT "uploading px4"
USES_TERMINAL USES_TERMINAL
@ -75,7 +75,7 @@ endif()
if ("${BOARD}" STREQUAL "rpi") if ("${BOARD}" STREQUAL "rpi")
add_custom_target(upload add_custom_target(upload
COMMAND scp -r $<TARGET_FILE:px4> ${PX4_SOURCE_DIR}/posix-configs/rpi/*.config ${PX4_SOURCE_DIR}/ROMFS pi@"ENV{AUTOPILOT_HOST}":/home/pi COMMAND rsync -arh --progress ${CMAKE_RUNTIME_OUTPUT_DIRECTORY} ${PX4_SOURCE_DIR}/posix-configs/rpi/*.config ${PX4_SOURCE_DIR}/ROMFS pi@"$ENV{AUTOPILOT_HOST}":/home/pi
DEPENDS px4 DEPENDS px4
COMMENT "uploading px4" COMMENT "uploading px4"
USES_TERMINAL USES_TERMINAL

View File

@ -1,6 +1,14 @@
#!/usr/bin/bash
# PX4 commands need the 'px4-' prefix in bash.
# (px4-alias.sh is expected to be in the PATH)
source px4-alias.sh
uorb start uorb start
param select /home/root/parameters param select /home/root/parameters
param load if [ -f /home/root/parameters ]
then
param load
fi
param set SYS_AUTOSTART 4013 param set SYS_AUTOSTART 4013
param set MAV_BROADCAST 1 param set MAV_BROADCAST 1
param set MAV_TYPE 3 param set MAV_TYPE 3

View File

@ -1,3 +1,9 @@
#!/usr/bin/bash
# PX4 commands need the 'px4-' prefix in bash.
# (px4-alias.sh is expected to be in the PATH)
source px4-alias.sh
uorb start uorb start
muorb start muorb start
logger start -t -b 200 logger start -t -b 200

View File

@ -1,3 +1,9 @@
#!/usr/bin/bash
# PX4 commands need the 'px4-' prefix in bash.
# (px4-alias.sh is expected to be in the PATH)
source px4-alias.sh
uorb start uorb start
muorb start muorb start
logger start -t -b 200 logger start -t -b 200

View File

@ -1,3 +1,9 @@
#!/usr/bin/bash
# PX4 commands need the 'px4-' prefix in bash.
# (px4-alias.sh is expected to be in the PATH)
source px4-alias.sh
uorb start uorb start
muorb start muorb start
logger start -t -b 200 logger start -t -b 200

View File

@ -1,3 +1,8 @@
#!/usr/bin/bash
# PX4 commands need the 'px4-' prefix in bash.
# (px4-alias.sh is expected to be in the PATH)
source px4-alias.sh
uorb start uorb start
muorb start muorb start
logger start -e -t logger start -e -t

View File

@ -1,7 +1,15 @@
#!/usr/bin/bash
# PX4 commands need the 'px4-' prefix in bash.
# (px4-alias.sh is expected to be in the PATH)
source px4-alias.sh
uorb start uorb start
param select /root/rootfs/eeprom/parameters param select /root/rootfs/eeprom/parameters
param load if [ -f /root/rootfs/eeprom/parameters ]
then
param load
fi
param set SYS_AUTOSTART 4001 param set SYS_AUTOSTART 4001
param set MAV_BROADCAST 1 param set MAV_BROADCAST 1
param set MAV_TYPE 2 param set MAV_TYPE 2

View File

@ -1,6 +1,14 @@
#!/usr/bin/bash
# PX4 commands need the 'px4-' prefix in bash.
# (px4-alias.sh is expected to be in the PATH)
source px4-alias.sh
# navio config for a quad # navio config for a quad
uorb start uorb start
param load if [ -f eeprom/parameters ]
then
param load
fi
param set SYS_AUTOSTART 4001 param set SYS_AUTOSTART 4001
param set MAV_BROADCAST 1 param set MAV_BROADCAST 1
param set MAV_TYPE 2 param set MAV_TYPE 2
@ -27,9 +35,14 @@ mc_att_control start
mavlink start -x -u 14556 -r 1000000 mavlink start -x -u 14556 -r 1000000
mavlink stream -u 14556 -s HIGHRES_IMU -r 50 mavlink stream -u 14556 -s HIGHRES_IMU -r 50
mavlink stream -u 14556 -s ATTITUDE -r 50 mavlink stream -u 14556 -s ATTITUDE -r 50
mavlink start -x -d /dev/ttyUSB0
mavlink stream -d /dev/ttyUSB0 -s HIGHRES_IMU -r 50 if [ -f /dev/ttyUSB0 ]
mavlink stream -d /dev/ttyUSB0 -s ATTITUDE -r 50 then
mavlink start -x -d /dev/ttyUSB0
mavlink stream -d /dev/ttyUSB0 -s HIGHRES_IMU -r 50
mavlink stream -d /dev/ttyUSB0 -s ATTITUDE -r 50
fi
navio_sysfs_rc_in start navio_sysfs_rc_in start
linux_pwm_out start linux_pwm_out start
logger start -t -b 200 logger start -t -b 200

View File

@ -1,3 +1,8 @@
#!/usr/bin/bash
# PX4 commands need the 'px4-' prefix in bash.
# (px4-alias.sh is expected to be in the PATH)
source px4-alias.sh
# navio config for FW # navio config for FW
uorb start uorb start

View File

@ -1,3 +1,8 @@
#!/usr/bin/bash
# PX4 commands need the 'px4-' prefix in bash.
# (px4-alias.sh is expected to be in the PATH)
source px4-alias.sh
# HITL configuration # HITL configuration
# connect to it with jMAVSim: # connect to it with jMAVSim:
# ./Tools/jmavsim_run.sh -q -i <IP> -p 14577 -r 250 # ./Tools/jmavsim_run.sh -q -i <IP> -p 14577 -r 250

View File

@ -1,3 +1,8 @@
#!/usr/bin/bash
# PX4 commands need the 'px4-' prefix in bash.
# (px4-alias.sh is expected to be in the PATH)
source px4-alias.sh
# config for a quad without any shield: # config for a quad without any shield:
# - u-blox GPS connected via UART # - u-blox GPS connected via UART
# - PWM output using PCA9685 via I2C # - PWM output using PCA9685 via I2C