mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
Added support in Mavlink Ethernet channel parameters
Mavlink Ethernet channel settings such as udp port, remote port and broadcast mode now can be changed dynamically via parameters.
This commit is contained in:
@@ -61,6 +61,7 @@
|
||||
# [ TESTING ]
|
||||
# [ LINKER_PREFIX <string> ]
|
||||
# [ EMBEDDED_METADATA <string> ]
|
||||
# [ ETHERNET ]
|
||||
# )
|
||||
#
|
||||
# Input:
|
||||
@@ -86,6 +87,7 @@
|
||||
# CONSTRAINED_MEMORY : flag to enable constrained memory options (eg limit maximum number of uORB publications)
|
||||
# TESTING : flag to enable automatic inclusion of PX4 testing modules
|
||||
# LINKER_PREFIX : optional to prefix on the Linker script.
|
||||
# ETHERNET : flag to indicate that ethernet is enabled
|
||||
#
|
||||
#
|
||||
# Example:
|
||||
@@ -163,6 +165,7 @@ function(px4_add_board)
|
||||
CONSTRAINED_FLASH
|
||||
CONSTRAINED_MEMORY
|
||||
TESTING
|
||||
ETHERNET
|
||||
REQUIRED
|
||||
PLATFORM
|
||||
VENDOR
|
||||
@@ -269,6 +272,10 @@ function(px4_add_board)
|
||||
set(PX4_TESTING "1" CACHE INTERNAL "testing enabled" FORCE)
|
||||
endif()
|
||||
|
||||
if(ETHERNET)
|
||||
set(PX4_ETHERNET "1" CACHE INTERNAL "ethernet enabled" FORCE)
|
||||
endif()
|
||||
|
||||
if(LINKER_PREFIX)
|
||||
set(PX4_BOARD_LINKER_PREFIX ${LINKER_PREFIX} CACHE STRING "PX4 board linker prefix" FORCE)
|
||||
else()
|
||||
|
||||
Reference in New Issue
Block a user