mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-03 12:10:06 +08:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 597db9b6a2 | |||
| 44bce91dc7 | |||
| 1b9a834309 | |||
| 9a5d5d4ce4 |
+1
-1
@@ -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>
|
||||
+1
-1
@@ -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>
|
||||
+1
-1
@@ -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
|
||||
{
|
||||
|
||||
+1
-1
@@ -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>
|
||||
|
||||
+3
-3
@@ -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
|
||||
{
|
||||
|
||||
+3
-3
@@ -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>
|
||||
|
||||
|
||||
+1
-1
@@ -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>
|
||||
|
||||
|
||||
+1
-1
@@ -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>
|
||||
|
||||
|
||||
+3
-3
@@ -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
|
||||
{
|
||||
|
||||
+2
-2
@@ -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
|
||||
{
|
||||
|
||||
+1
-1
@@ -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
|
||||
{
|
||||
|
||||
+3
-3
@@ -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>
|
||||
|
||||
|
||||
+3
-3
@@ -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>
|
||||
|
||||
|
||||
+4
-4
@@ -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>
|
||||
|
||||
|
||||
+2
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user