mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 21:13:34 +08: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)
|
target_link_libraries(px4 PRIVATE robotcontrol)
|
||||||
|
|
||||||
add_custom_target(upload
|
add_custom_target(upload
|
||||||
COMMAND scp -r ${PX4_SOURCE_DIR}/posix-configs/bbblue/*.config debian@BBBluePX4:/home/debian/px4/posix-configs
|
COMMAND rsync -arh --progress ${CMAKE_RUNTIME_OUTPUT_DIRECTORY} ${PX4_SOURCE_DIR}/posix-configs/bbblue/*.config ${PX4_SOURCE_DIR}/ROMFS debian@BBBluePX4:/home/debian/px4
|
||||||
COMMAND scp -r ${PX4_SOURCE_DIR}/ROMFS $<TARGET_FILE:px4> debian@BBBluePX4:/home/debian/px4
|
|
||||||
DEPENDS px4
|
DEPENDS px4
|
||||||
COMMENT "uploading px4 and data files"
|
COMMENT "uploading px4 and data files"
|
||||||
USES_TERMINAL
|
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")
|
elseif ("${BOARD}" STREQUAL "bebop")
|
||||||
|
|
||||||
add_custom_target(upload
|
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
|
# config for a quad
|
||||||
# modified from ../rpi/px4.config
|
# 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)
|
# config for fixed wing (FW)
|
||||||
# modified from ./px4.config, switch att/pos_control & mixer
|
# modified from ./px4.config, switch att/pos_control & mixer
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user