mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-01 07:41:36 +08:00
Move airspeed_selector module into sensors module
with the main goal to save resources like flash, RAM, CPU.
This commit is contained in:
@@ -1,12 +0,0 @@
|
|||||||
menuconfig MODULES_AIRSPEED_SELECTOR
|
|
||||||
bool "airspeed_selector"
|
|
||||||
default n
|
|
||||||
---help---
|
|
||||||
Enable support for airspeed_selector
|
|
||||||
|
|
||||||
menuconfig USER_AIRSPEED_SELECTOR
|
|
||||||
bool "airspeed_selector running as userspace module"
|
|
||||||
default y
|
|
||||||
depends on BOARD_PROTECTED && MODULES_AIRSPEED_SELECTOR
|
|
||||||
---help---
|
|
||||||
Put airspeed_selector in userspace memory
|
|
||||||
@@ -91,6 +91,8 @@ endif()
|
|||||||
|
|
||||||
if(CONFIG_SENSORS_VEHICLE_AIRSPEED)
|
if(CONFIG_SENSORS_VEHICLE_AIRSPEED)
|
||||||
target_link_libraries(modules__sensors PRIVATE airspeed)
|
target_link_libraries(modules__sensors PRIVATE airspeed)
|
||||||
|
add_subdirectory(airspeed_selector)
|
||||||
|
target_link_libraries(modules__sensors PRIVATE airspeed_selector)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CONFIG_SENSORS_VEHICLE_ANGULAR_VELOCITY)
|
if(CONFIG_SENSORS_VEHICLE_ANGULAR_VELOCITY)
|
||||||
|
|||||||
+7
-9
@@ -30,13 +30,11 @@
|
|||||||
# POSSIBILITY OF SUCH DAMAGE.
|
# POSSIBILITY OF SUCH DAMAGE.
|
||||||
#
|
#
|
||||||
############################################################################
|
############################################################################
|
||||||
px4_add_module(
|
|
||||||
MODULE modules__airspeed_selector
|
px4_add_library(airspeed_selector
|
||||||
MAIN airspeed_selector
|
airspeed_selector_main.cpp
|
||||||
SRCS
|
AirspeedValidator.cpp
|
||||||
airspeed_selector_main.cpp
|
AirspeedValidator.hpp
|
||||||
AirspeedValidator.cpp
|
|
||||||
AirspeedValidator.hpp
|
|
||||||
DEPENDS
|
|
||||||
wind_estimator
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
target_link_libraries(airspeed_selector PRIVATE wind_estimator)
|
||||||
Reference in New Issue
Block a user