mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 01:43:34 +08:00
hysteresis: move out of systemlib, move to gtest
This moves the hysteresis test out of the systemlib and makes it its own small library. Since it still depends on hrt_absolute_time this does not link yet. My attempt to get all link dependencies together failed.
This commit is contained in:
@@ -62,6 +62,7 @@ px4_add_module(
|
||||
failure_detector
|
||||
git_ecl
|
||||
ecl_geo
|
||||
hysteresis
|
||||
)
|
||||
|
||||
if(PX4_TESTING)
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
#include <lib/mathlib/mathlib.h>
|
||||
#include <px4_module.h>
|
||||
#include <px4_module_params.h>
|
||||
#include <systemlib/hysteresis/hysteresis.h>
|
||||
#include <lib/hysteresis/hysteresis.h>
|
||||
|
||||
// publications
|
||||
#include <uORB/Publication.hpp>
|
||||
|
||||
@@ -43,5 +43,6 @@ px4_add_module(
|
||||
VtolLandDetector.cpp
|
||||
RoverLandDetector.cpp
|
||||
DEPENDS
|
||||
hysteresis
|
||||
)
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
|
||||
#include <px4_workqueue.h>
|
||||
#include <px4_module.h>
|
||||
#include <systemlib/hysteresis/hysteresis.h>
|
||||
#include <lib/hysteresis/hysteresis.h>
|
||||
#include <parameters/param.h>
|
||||
#include <perf/perf_counter.h>
|
||||
#include <uORB/uORB.h>
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
#include <px4_module.h>
|
||||
#include <px4_posix.h>
|
||||
#include <drivers/drv_hrt.h>
|
||||
#include <systemlib/hysteresis/hysteresis.h>
|
||||
#include <lib/hysteresis/hysteresis.h>
|
||||
#include <commander/px4_custom_mode.h>
|
||||
|
||||
#include <uORB/topics/home_position.h>
|
||||
|
||||
Reference in New Issue
Block a user