mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-25 08:36:08 +08:00
controllib move old blocks to segway
This commit is contained in:
committed by
Lorenz Meier
parent
db816982cd
commit
b03818cd0e
@@ -2,7 +2,7 @@
|
||||
|
||||
#include <px4_posix.h>
|
||||
#include <controllib/blocks.hpp>
|
||||
#include <controllib/uorb/blocks.hpp>
|
||||
#include "blocks.hpp"
|
||||
|
||||
using control::BlockPI;
|
||||
using control::BlockP;
|
||||
|
||||
@@ -36,6 +36,7 @@ px4_add_module(
|
||||
STACK_MAIN 1300
|
||||
STACK_MAX 1300
|
||||
SRCS
|
||||
blocks.cpp
|
||||
segway_main.cpp
|
||||
BlockSegwayController.cpp
|
||||
params.c
|
||||
|
||||
@@ -37,7 +37,6 @@ px4_add_module(
|
||||
blocks.cpp
|
||||
block/Block.cpp
|
||||
block/BlockParam.cpp
|
||||
uorb/blocks.cpp
|
||||
DEPENDS
|
||||
platforms__common
|
||||
)
|
||||
|
||||
@@ -83,9 +83,8 @@ int basicBlocksTest()
|
||||
failed = failed || blockPDTest() < 0;
|
||||
failed = failed || blockPIDTest() < 0;
|
||||
failed = failed || blockOutputTest() < 0;
|
||||
// known failures
|
||||
//failed = failed || blockRandUniformTest() < 0;
|
||||
//failed = failed || blockRandGaussTest() < 0;
|
||||
failed = failed || blockRandUniformTest() < 0;
|
||||
failed = failed || blockRandGaussTest() < 0;
|
||||
failed = failed || blockStatsTest() < 0;
|
||||
failed = failed || blockDelayTest() < 0;
|
||||
return failed ? -1 : 0;
|
||||
@@ -532,25 +531,5 @@ extern "C" __EXPORT int controllib_test_main(int argc, char *argv[]);
|
||||
|
||||
int controllib_test_main(int argc, char *argv[])
|
||||
{
|
||||
(void)argc;
|
||||
(void)argv;
|
||||
blockLimitTest();
|
||||
blockLimitSymTest();
|
||||
blockLowPassTest();
|
||||
blockHighPassTest();
|
||||
blockLowPass2Test();
|
||||
blockIntegralTest();
|
||||
blockIntegralTrapTest();
|
||||
blockDerivativeTest();
|
||||
blockPTest();
|
||||
blockPITest();
|
||||
blockPDTest();
|
||||
blockPIDTest();
|
||||
blockOutputTest();
|
||||
//blockRandUniformTest();
|
||||
// known failures
|
||||
// blockRandGaussTest();
|
||||
blockStatsTest();
|
||||
blockDelayTest();
|
||||
return 0;
|
||||
return basicBlocksTest();
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
#include <mathlib/math/filter/LowPassFilter2p.hpp>
|
||||
#include <platforms/px4_defines.h>
|
||||
#include <drivers/drv_hrt.h>
|
||||
#include <controllib/uorb/blocks.hpp>
|
||||
#include <controllib/blocks.hpp>
|
||||
|
||||
#include <uORB/topics/sensor_combined.h>
|
||||
#include <uORB/topics/vehicle_gps_position.h>
|
||||
|
||||
Reference in New Issue
Block a user