navigator move to new uORB::Subscription

This commit is contained in:
Daniel Agar
2019-06-05 20:28:44 -04:00
parent 79eb74be3f
commit e4ad994763
8 changed files with 55 additions and 173 deletions
+2 -1
View File
@@ -43,6 +43,7 @@
#include <matrix/math.hpp>
#include <lib/ecl/geo/geo.h>
#include <px4_module_params.h>
#include <uORB/Subscription.hpp>
#include <uORB/topics/landing_target_pose.h>
#include "navigator_mode.h"
@@ -103,7 +104,7 @@ private:
landing_target_pose_s _target_pose{}; /**< precision landing target position */
int _target_pose_sub{-1};
uORB::Subscription _target_pose_sub{ORB_ID(landing_target_pose)};
bool _target_pose_valid{false}; /**< whether we have received a landing target position message */
bool _target_pose_updated{false}; /**< wether the landing target position message is updated */