mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-06 13:48:52 +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
@@ -113,8 +113,13 @@ if(NOT ${BOARD} STREQUAL "sim")
|
||||
${CMAKE_CURRENT_BINARY_DIR}/.gdbinit
|
||||
)
|
||||
|
||||
px4_add_upload(OUT upload OS ${OS} BOARD ${BOARD}
|
||||
BUNDLE ${fw_file})
|
||||
if ("${BOARD}" STREQUAL "aerofc-v1")
|
||||
px4_add_upload_aero(OUT upload OS ${OS} BOARD ${BOARD}
|
||||
BUNDLE ${fw_file})
|
||||
else()
|
||||
px4_add_upload(OUT upload OS ${OS} BOARD ${BOARD}
|
||||
BUNDLE ${fw_file})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
install(FILES ${fw_file} DESTINATION .)
|
||||
|
||||
Reference in New Issue
Block a user