mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 11:13:34 +08:00
cs_check: move constants to header file
This commit is contained in:
@@ -555,9 +555,6 @@ void ControlAllocator::preflight_check_finish()
|
|||||||
|
|
||||||
void ControlAllocator::preflight_check_update_state()
|
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) {
|
if (_preflight_check_running) {
|
||||||
hrt_abstime now = hrt_absolute_time();
|
hrt_abstime now = hrt_absolute_time();
|
||||||
|
|
||||||
|
|||||||
@@ -81,6 +81,7 @@
|
|||||||
#include <uORB/topics/vehicle_command_ack.h>
|
#include <uORB/topics/vehicle_command_ack.h>
|
||||||
#include <uORB/topics/failure_detector_status.h>
|
#include <uORB/topics/failure_detector_status.h>
|
||||||
|
|
||||||
|
|
||||||
class ControlAllocator : public ModuleBase<ControlAllocator>, public ModuleParams, public px4::ScheduledWorkItem
|
class ControlAllocator : public ModuleBase<ControlAllocator>, public ModuleParams, public px4::ScheduledWorkItem
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -90,6 +91,9 @@ public:
|
|||||||
static constexpr int MAX_NUM_MOTORS = actuator_motors_s::NUM_CONTROLS;
|
static constexpr int MAX_NUM_MOTORS = actuator_motors_s::NUM_CONTROLS;
|
||||||
static constexpr int MAX_NUM_SERVOS = actuator_servos_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;
|
using ActuatorVector = ActuatorEffectiveness::ActuatorVector;
|
||||||
|
|
||||||
ControlAllocator();
|
ControlAllocator();
|
||||||
|
|||||||
Reference in New Issue
Block a user