mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 15:53:34 +08:00
control_allocator and angular_velocity_controller throttle parameter_update subscription
This commit is contained in:
+4
-2
@@ -45,8 +45,11 @@
|
||||
|
||||
#include <px4_platform_common/module_params.h>
|
||||
#include <uORB/Subscription.hpp>
|
||||
#include <uORB/SubscriptionInterval.hpp>
|
||||
#include <uORB/topics/parameter_update.h>
|
||||
|
||||
using namespace time_literals;
|
||||
|
||||
class ActuatorEffectivenessMultirotor: public ModuleParams, public ActuatorEffectiveness
|
||||
{
|
||||
public:
|
||||
@@ -77,8 +80,7 @@ public:
|
||||
|
||||
int numActuators() const override { return _num_actuators; }
|
||||
private:
|
||||
|
||||
uORB::Subscription _parameter_update_sub{ORB_ID(parameter_update)}; /**< parameter updates subscription */
|
||||
uORB::SubscriptionInterval _parameter_update_sub{ORB_ID(parameter_update), 1_s};
|
||||
|
||||
bool _updated{true};
|
||||
int _num_actuators{0};
|
||||
|
||||
Reference in New Issue
Block a user