Compare commits

...

4 Commits

Author SHA1 Message Date
Pernilla 597db9b6a2 clarify paths from library headers 2025-01-31 09:10:19 +01:00
Pernilla 44bce91dc7 Updating the paths to clarify where headers origin 2025-01-30 18:09:35 +01:00
Pernilla 1b9a834309 Updating CMakeLists 2025-01-30 17:35:08 +01:00
Pernilla 9a5d5d4ce4 Moving generic code to lib 2025-01-30 17:34:06 +01:00
24 changed files with 44 additions and 43 deletions
@@ -33,7 +33,7 @@
#pragma once
#include "control_allocation/actuator_effectiveness/ActuatorEffectiveness.hpp"
#include "ActuatorEffectiveness.hpp"
#include <px4_platform_common/module_params.h>
#include <lib/slew_rate/SlewRate.hpp>
@@ -41,7 +41,7 @@
#pragma once
#include "control_allocation/actuator_effectiveness/ActuatorEffectiveness.hpp"
#include "ActuatorEffectiveness.hpp"
#include <px4_platform_common/module_params.h>
#include <uORB/Subscription.hpp>
@@ -33,7 +33,7 @@
#pragma once
#include "control_allocation/actuator_effectiveness/ActuatorEffectiveness.hpp"
#include "ActuatorEffectiveness.hpp"
#include "ActuatorEffectivenessRotors.hpp"
#include <px4_platform_common/module_params.h>
@@ -34,6 +34,12 @@
px4_add_library(ActuatorEffectiveness
ActuatorEffectiveness.cpp
ActuatorEffectiveness.hpp
ActuatorEffectivenessControlSurfaces.cpp
ActuatorEffectivenessControlSurfaces.hpp
ActuatorEffectivenessTilts.cpp
ActuatorEffectivenessTilts.hpp
ActuatorEffectivenessRotors.cpp
ActuatorEffectivenessRotors.hpp
)
target_compile_options(ActuatorEffectiveness PRIVATE ${MAX_CUSTOM_OPT_LEVEL})
@@ -43,3 +49,5 @@ target_link_libraries(ActuatorEffectiveness
mathlib
PID
)
px4_add_functional_gtest(SRC ActuatorEffectivenessRotorsTest.cpp LINKLIBS ActuatorEffectiveness)
@@ -44,4 +44,4 @@ target_include_directories(ControlAllocation PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(ControlAllocation PRIVATE mathlib)
px4_add_unit_gtest(SRC ControlAllocationPseudoInverseTest.cpp LINKLIBS ControlAllocation)
# px4_add_functional_gtest(SRC ControlAllocationSequentialDesaturationTest.cpp LINKLIBS ControlAllocation ActuatorEffectiveness)
px4_add_functional_gtest(SRC ControlAllocationSequentialDesaturationTest.cpp LINKLIBS ControlAllocation ActuatorEffectiveness)
@@ -71,7 +71,7 @@
#include <matrix/matrix/math.hpp>
#include "control_allocation/actuator_effectiveness/ActuatorEffectiveness.hpp"
#include "../actuator_effectiveness/ActuatorEffectiveness.hpp"
class ControlAllocation
{
@@ -40,7 +40,7 @@
#include <gtest/gtest.h>
#include <ControlAllocationSequentialDesaturation.hpp>
#include <actuator_effectiveness/ActuatorEffectivenessRotors.hpp>
#include <control_allocation/actuator_effectiveness/ActuatorEffectivenessRotors.hpp>
using namespace matrix;
@@ -41,7 +41,7 @@
#pragma once
#include <ActuatorEffectiveness.hpp>
#include <lib/control_allocation/actuator_effectiveness/ActuatorEffectiveness.hpp>
#include <ActuatorEffectivenessMultirotor.hpp>
#include <ActuatorEffectivenessStandardVTOL.hpp>
#include <ActuatorEffectivenessTiltrotorVTOL.hpp>
@@ -54,9 +54,9 @@
#include <ActuatorEffectivenessHelicopter.hpp>
#include <ActuatorEffectivenessHelicopterCoaxial.hpp>
#include <ControlAllocation.hpp>
#include <ControlAllocationPseudoInverse.hpp>
#include <ControlAllocationSequentialDesaturation.hpp>
#include <lib/control_allocation/control_allocation/ControlAllocation.hpp>
#include <lib/control_allocation/control_allocation/ControlAllocationPseudoInverse.hpp>
#include <lib/control_allocation/control_allocation/ControlAllocationSequentialDesaturation.hpp>
#include <lib/matrix/matrix/math.hpp>
#include <lib/perf/perf_counter.h>
@@ -33,9 +33,9 @@
#pragma once
#include "control_allocation/actuator_effectiveness/ActuatorEffectiveness.hpp"
#include "ActuatorEffectivenessRotors.hpp"
#include "ActuatorEffectivenessControlSurfaces.hpp"
#include <lib/control_allocation/actuator_effectiveness/ActuatorEffectiveness.hpp>
#include <lib/control_allocation/actuator_effectiveness/ActuatorEffectivenessRotors.hpp>
#include <lib/control_allocation/actuator_effectiveness/ActuatorEffectivenessControlSurfaces.hpp>
class ActuatorEffectivenessCustom : public ModuleParams, public ActuatorEffectiveness
{
@@ -33,9 +33,9 @@
#pragma once
#include "control_allocation/actuator_effectiveness/ActuatorEffectiveness.hpp"
#include "ActuatorEffectivenessRotors.hpp"
#include "ActuatorEffectivenessControlSurfaces.hpp"
#include <lib/control_allocation/actuator_effectiveness/ActuatorEffectiveness.hpp>
#include <lib/control_allocation/actuator_effectiveness/ActuatorEffectivenessRotors.hpp>
#include <lib/control_allocation/actuator_effectiveness/ActuatorEffectivenessControlSurfaces.hpp>
#include <uORB/topics/normalized_unsigned_setpoint.h>
@@ -33,7 +33,7 @@
#pragma once
#include "control_allocation/actuator_effectiveness/ActuatorEffectiveness.hpp"
#include <lib/control_allocation/actuator_effectiveness/ActuatorEffectiveness.hpp>
#include <px4_platform_common/module_params.h>
@@ -33,7 +33,7 @@
#pragma once
#include "control_allocation/actuator_effectiveness/ActuatorEffectiveness.hpp"
#include <lib/control_allocation/actuator_effectiveness/ActuatorEffectiveness.hpp>
#include <px4_platform_common/module_params.h>
@@ -33,9 +33,9 @@
#pragma once
#include "control_allocation/actuator_effectiveness/ActuatorEffectiveness.hpp"
#include "ActuatorEffectivenessRotors.hpp"
#include "ActuatorEffectivenessTilts.hpp"
#include <lib/control_allocation/actuator_effectiveness/ActuatorEffectiveness.hpp>
#include <lib/control_allocation/actuator_effectiveness/ActuatorEffectivenessRotors.hpp>
#include <lib/control_allocation/actuator_effectiveness/ActuatorEffectivenessTilts.hpp>
class ActuatorEffectivenessMCTilt : public ModuleParams, public ActuatorEffectiveness
{
@@ -33,8 +33,8 @@
#pragma once
#include "control_allocation/actuator_effectiveness/ActuatorEffectiveness.hpp"
#include "ActuatorEffectivenessRotors.hpp"
#include <lib/control_allocation/actuator_effectiveness/ActuatorEffectiveness.hpp>
#include <lib/control_allocation/actuator_effectiveness/ActuatorEffectivenessRotors.hpp>
class ActuatorEffectivenessMultirotor : public ModuleParams, public ActuatorEffectiveness
{
@@ -33,7 +33,7 @@
#pragma once
#include "control_allocation/actuator_effectiveness/ActuatorEffectiveness.hpp"
#include <lib/control_allocation/actuator_effectiveness/ActuatorEffectiveness.hpp>
class ActuatorEffectivenessRoverAckermann : public ActuatorEffectiveness
{
@@ -41,9 +41,9 @@
#pragma once
#include "control_allocation/actuator_effectiveness/ActuatorEffectiveness.hpp"
#include "ActuatorEffectivenessRotors.hpp"
#include "ActuatorEffectivenessControlSurfaces.hpp"
#include <lib/control_allocation/actuator_effectiveness/ActuatorEffectiveness.hpp>
#include <lib/control_allocation/actuator_effectiveness/ActuatorEffectivenessRotors.hpp>
#include <lib/control_allocation/actuator_effectiveness/ActuatorEffectivenessControlSurfaces.hpp>
#include <uORB/topics/normalized_unsigned_setpoint.h>
@@ -39,9 +39,9 @@
#pragma once
#include "control_allocation/actuator_effectiveness/ActuatorEffectiveness.hpp"
#include "ActuatorEffectivenessRotors.hpp"
#include "ActuatorEffectivenessControlSurfaces.hpp"
#include <lib/control_allocation/actuator_effectiveness/ActuatorEffectiveness.hpp>
#include <lib/control_allocation/actuator_effectiveness/ActuatorEffectivenessRotors.hpp>
#include <lib/control_allocation/actuator_effectiveness/ActuatorEffectivenessControlSurfaces.hpp>
#include <uORB/topics/normalized_unsigned_setpoint.h>
@@ -41,10 +41,10 @@
#pragma once
#include "control_allocation/actuator_effectiveness/ActuatorEffectiveness.hpp"
#include "ActuatorEffectivenessRotors.hpp"
#include "ActuatorEffectivenessControlSurfaces.hpp"
#include "ActuatorEffectivenessTilts.hpp"
#include <lib/control_allocation/actuator_effectiveness/ActuatorEffectiveness.hpp>
#include <lib/control_allocation/actuator_effectiveness/ActuatorEffectivenessRotors.hpp>
#include <lib/control_allocation/actuator_effectiveness/ActuatorEffectivenessControlSurfaces.hpp>
#include <lib/control_allocation/actuator_effectiveness/ActuatorEffectivenessTilts.hpp>
#include <px4_platform_common/module_params.h>
@@ -33,8 +33,8 @@
#pragma once
#include "control_allocation/actuator_effectiveness/ActuatorEffectiveness.hpp"
#include "ActuatorEffectivenessRotors.hpp"
#include <lib/control_allocation/actuator_effectiveness/ActuatorEffectiveness.hpp>
#include <lib/control_allocation/actuator_effectiveness/ActuatorEffectivenessRotors.hpp>
class ActuatorEffectivenessUUV : public ModuleParams, public ActuatorEffectiveness
{
@@ -1,8 +1,6 @@
px4_add_library(VehicleActuatorEffectiveness
ActuatorEffectivenessUUV.cpp
ActuatorEffectivenessUUV.hpp
ActuatorEffectivenessControlSurfaces.cpp
ActuatorEffectivenessControlSurfaces.hpp
ActuatorEffectivenessCustom.cpp
ActuatorEffectivenessCustom.hpp
ActuatorEffectivenessFixedWing.cpp
@@ -15,10 +13,6 @@ px4_add_library(VehicleActuatorEffectiveness
ActuatorEffectivenessMCTilt.hpp
ActuatorEffectivenessMultirotor.cpp
ActuatorEffectivenessMultirotor.hpp
ActuatorEffectivenessTilts.cpp
ActuatorEffectivenessTilts.hpp
ActuatorEffectivenessRotors.cpp
ActuatorEffectivenessRotors.hpp
ActuatorEffectivenessStandardVTOL.cpp
ActuatorEffectivenessStandardVTOL.hpp
ActuatorEffectivenessTiltrotorVTOL.cpp
@@ -40,4 +34,3 @@ target_link_libraries(VehicleActuatorEffectiveness
)
px4_add_functional_gtest(SRC ActuatorEffectivenessHelicopterTest.cpp LINKLIBS VehicleActuatorEffectiveness)
px4_add_functional_gtest(SRC ActuatorEffectivenessRotorsTest.cpp LINKLIBS VehicleActuatorEffectiveness)