mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 03:23:35 +08:00
aerofc: add upload command
AeroFC is updated by Aero board using the UART between AeroFC and Aero board. This script will copy firmware and px_uploader.py to Aero board and run px_uploader.py with the correct paremeters. User only needs to have a network connection (Ethernet over USB or WiFi) with Aero board to update AeroFC firmware. The IP/hostname can be given by AERO_HOSTNAME environment variable.
This commit is contained in:
committed by
Lorenz Meier
parent
6af31a109f
commit
c49c3f469e
@@ -580,6 +580,23 @@ function(px4_add_scp_push)
|
||||
)
|
||||
endfunction()
|
||||
|
||||
function(px4_add_upload_aero)
|
||||
px4_parse_function_args(
|
||||
NAME px4_add_upload_aero
|
||||
ONE_VALUE OS BOARD OUT BUNDLE
|
||||
REQUIRED OS BOARD OUT BUNDLE
|
||||
ARGN ${ARGN})
|
||||
|
||||
add_custom_target(${OUT}
|
||||
COMMAND ${PX4_SOURCE_DIR}/Tools/aero_upload.sh ${BUNDLE}
|
||||
DEPENDS ${BUNDLE}
|
||||
WORKING_DIRECTORY ${PX4_BINARY_DIR}
|
||||
COMMENT "uploading ${BUNDLE}"
|
||||
VERBATIM
|
||||
USES_TERMINAL
|
||||
)
|
||||
endfunction()
|
||||
|
||||
|
||||
#=============================================================================
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user