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:
Julian Oes
2019-05-27 09:57:50 +02:00
parent b849991494
commit 7b9562e3b1
16 changed files with 88 additions and 99 deletions
+1
View File
@@ -62,6 +62,7 @@ px4_add_module(
failure_detector
git_ecl
ecl_geo
hysteresis
)
if(PX4_TESTING)
+1 -1
View File
@@ -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>
+1
View File
@@ -43,5 +43,6 @@ px4_add_module(
VtolLandDetector.cpp
RoverLandDetector.cpp
DEPENDS
hysteresis
)
+1 -1
View File
@@ -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>