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:
José Roberto de Souza
2016-11-28 09:21:12 +01:00
committed by Lorenz Meier
parent 6af31a109f
commit c49c3f469e
3 changed files with 77 additions and 2 deletions
+7 -2
View File
@@ -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 .)