diff --git a/src/modules/control_allocator/ControlAllocator.cpp b/src/modules/control_allocator/ControlAllocator.cpp index 6c20a910d9..2ef2f75191 100644 --- a/src/modules/control_allocator/ControlAllocator.cpp +++ b/src/modules/control_allocator/ControlAllocator.cpp @@ -555,9 +555,6 @@ void ControlAllocator::preflight_check_finish() void ControlAllocator::preflight_check_update_state() { - static uint32_t PREFLIGHT_CHECK_DURATION = 500_ms; - static uint32_t PREFLIGHT_CHECK_ACK_PERIOD = 1000_ms; - if (_preflight_check_running) { hrt_abstime now = hrt_absolute_time(); diff --git a/src/modules/control_allocator/ControlAllocator.hpp b/src/modules/control_allocator/ControlAllocator.hpp index dee5c8e25a..a80497a79c 100644 --- a/src/modules/control_allocator/ControlAllocator.hpp +++ b/src/modules/control_allocator/ControlAllocator.hpp @@ -81,6 +81,7 @@ #include #include + class ControlAllocator : public ModuleBase, public ModuleParams, public px4::ScheduledWorkItem { public: @@ -90,6 +91,9 @@ public: static constexpr int MAX_NUM_MOTORS = actuator_motors_s::NUM_CONTROLS; static constexpr int MAX_NUM_SERVOS = actuator_servos_s::NUM_CONTROLS; + static constexpr uint32_t PREFLIGHT_CHECK_DURATION = 500_ms; + static constexpr uint32_t PREFLIGHT_CHECK_ACK_PERIOD = 1000_ms; + using ActuatorVector = ActuatorEffectiveness::ActuatorVector; ControlAllocator();