Browse Source

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)
sbg
Beat Küng 7 years ago committed by Lorenz Meier
parent
commit
d90ac975a7
  1. 4
      platforms/posix/CMakeLists.txt
  2. 10
      posix-configs/bebop/px4.config
  3. 6
      posix-configs/eagle/200qx/mainapp.config
  4. 6
      posix-configs/eagle/210qc/mainapp.config
  5. 6
      posix-configs/eagle/flight/mainapp.config
  6. 5
      posix-configs/excelsior/mainapp.config
  7. 10
      posix-configs/ocpoc/px4.config
  8. 21
      posix-configs/rpi/px4.config
  9. 5
      posix-configs/rpi/px4_fw.config
  10. 5
      posix-configs/rpi/px4_hil.config
  11. 5
      posix-configs/rpi/px4_no_shield.config

4
platforms/posix/CMakeLists.txt

@ -46,7 +46,7 @@ if (("${BOARD}" STREQUAL "eagle") OR ("${BOARD}" STREQUAL "excelsior")) @@ -46,7 +46,7 @@ if (("${BOARD}" STREQUAL "eagle") OR ("${BOARD}" STREQUAL "excelsior"))
)
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
COMMENT "uploading px4"
USES_TERMINAL
@ -75,7 +75,7 @@ endif() @@ -75,7 +75,7 @@ endif()
if ("${BOARD}" STREQUAL "rpi")
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
COMMENT "uploading px4"
USES_TERMINAL

10
posix-configs/bebop/px4.config

@ -1,6 +1,14 @@ @@ -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
param select /home/root/parameters
param load
if [ -f /home/root/parameters ]
then
param load
fi
param set SYS_AUTOSTART 4013
param set MAV_BROADCAST 1
param set MAV_TYPE 3

6
posix-configs/eagle/200qx/mainapp.config

@ -1,3 +1,9 @@ @@ -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
muorb start
logger start -t -b 200

6
posix-configs/eagle/210qc/mainapp.config

@ -1,3 +1,9 @@ @@ -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
muorb start
logger start -t -b 200

6
posix-configs/eagle/flight/mainapp.config

@ -1,3 +1,9 @@ @@ -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
muorb start
logger start -t -b 200

5
posix-configs/excelsior/mainapp.config

@ -1,3 +1,8 @@ @@ -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
muorb start
logger start -e -t

10
posix-configs/ocpoc/px4.config

@ -1,7 +1,15 @@ @@ -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
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 MAV_BROADCAST 1
param set MAV_TYPE 2

21
posix-configs/rpi/px4.config

@ -1,6 +1,14 @@ @@ -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
uorb start
param load
if [ -f eeprom/parameters ]
then
param load
fi
param set SYS_AUTOSTART 4001
param set MAV_BROADCAST 1
param set MAV_TYPE 2
@ -27,9 +35,14 @@ mc_att_control start @@ -27,9 +35,14 @@ mc_att_control start
mavlink start -x -u 14556 -r 1000000
mavlink stream -u 14556 -s HIGHRES_IMU -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
mavlink stream -d /dev/ttyUSB0 -s ATTITUDE -r 50
if [ -f /dev/ttyUSB0 ]
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
linux_pwm_out start
logger start -t -b 200

5
posix-configs/rpi/px4_fw.config

@ -1,3 +1,8 @@ @@ -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
uorb start

5
posix-configs/rpi/px4_hil.config

@ -1,3 +1,8 @@ @@ -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
# connect to it with jMAVSim:
# ./Tools/jmavsim_run.sh -q -i <IP> -p 14577 -r 250

5
posix-configs/rpi/px4_no_shield.config

@ -1,3 +1,8 @@ @@ -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:
# - u-blox GPS connected via UART
# - PWM output using PCA9685 via I2C

Loading…
Cancel
Save