Browse Source

bbblue: required changes for posix shell

sbg
Beat Küng 7 years ago committed by Lorenz Meier
parent
commit
efb202106f
  1. 10
      platforms/posix/CMakeLists.txt
  2. 5
      posix-configs/bbblue/px4.config
  3. 5
      posix-configs/bbblue/px4_fw.config

10
platforms/posix/CMakeLists.txt

@ -85,20 +85,12 @@ elseif ("${BOARD}" STREQUAL "bbblue") @@ -85,20 +85,12 @@ elseif ("${BOARD}" STREQUAL "bbblue")
target_link_libraries(px4 PRIVATE robotcontrol)
add_custom_target(upload
COMMAND scp -r ${PX4_SOURCE_DIR}/posix-configs/bbblue/*.config debian@BBBluePX4:/home/debian/px4/posix-configs
COMMAND scp -r ${PX4_SOURCE_DIR}/ROMFS $<TARGET_FILE:px4> debian@BBBluePX4:/home/debian/px4
COMMAND rsync -arh --progress ${CMAKE_RUNTIME_OUTPUT_DIRECTORY} ${PX4_SOURCE_DIR}/posix-configs/bbblue/*.config ${PX4_SOURCE_DIR}/ROMFS debian@BBBluePX4:/home/debian/px4
DEPENDS px4
COMMENT "uploading px4 and data files"
USES_TERMINAL
)
add_custom_target(upload_px4
COMMAND scp -r $<TARGET_FILE:px4> debian@BBBluePX4:/home/debian/px4
DEPENDS px4
COMMENT "uploading px4"
USES_TERMINAL
)
elseif ("${BOARD}" STREQUAL "bebop")
add_custom_target(upload

5
posix-configs/bbblue/px4.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
# modified from ../rpi/px4.config

5
posix-configs/bbblue/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
# config for fixed wing (FW)
# modified from ./px4.config, switch att/pos_control & mixer

Loading…
Cancel
Save