mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
bbblue: required changes for posix shell
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user