forked from Archive/PX4-Autopilot
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:
parent
2454ef9240
commit
d90ac975a7
|
@ -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()
|
|||
|
||||
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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
|||
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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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…
Reference in New Issue