mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-06 04:01:37 +08:00
navigator move to new uORB::Subscription
This commit is contained in:
@@ -47,6 +47,7 @@
|
||||
#include <matrix/math.hpp>
|
||||
|
||||
#include <px4_module_params.h>
|
||||
#include <uORB/Subscription.hpp>
|
||||
#include <uORB/topics/follow_target.h>
|
||||
|
||||
class FollowTarget : public MissionBlock, public ModuleParams
|
||||
@@ -99,7 +100,7 @@ private:
|
||||
FollowTargetState _follow_target_state{SET_WAIT_FOR_TARGET_POSITION};
|
||||
int _follow_target_position{FOLLOW_FROM_BEHIND};
|
||||
|
||||
int _follow_target_sub{-1};
|
||||
uORB::Subscription _follow_target_sub{ORB_ID(follow_target)};
|
||||
float _step_time_in_ms{0.0f};
|
||||
float _follow_offset{OFFSET_M};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user