|
|
|
@ -92,6 +92,13 @@ public:
@@ -92,6 +92,13 @@ public:
|
|
|
|
|
bool updateInitialize() override; |
|
|
|
|
bool update() override; |
|
|
|
|
|
|
|
|
|
bool setCruisingSpeed(const float cruising_speed_m_s) override |
|
|
|
|
{ |
|
|
|
|
_mc_cruise_speed = cruising_speed_m_s; |
|
|
|
|
_commanded_speed_ts = hrt_absolute_time(); |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Sets an external yaw handler which can be used to implement a different yaw control strategy. |
|
|
|
|
*/ |
|
|
|
@ -128,7 +135,7 @@ protected:
@@ -128,7 +135,7 @@ protected:
|
|
|
|
|
matrix::Vector3f _target{}; /**< Target waypoint (local frame).*/ |
|
|
|
|
matrix::Vector3f _next_wp{}; /**< The next waypoint after target (local frame). If no next setpoint is available, next is set to target. */ |
|
|
|
|
bool _next_was_valid{false}; |
|
|
|
|
float _mc_cruise_speed{0.0f}; /**< Requested cruise speed. If not valid, default cruise speed is used. */ |
|
|
|
|
float _mc_cruise_speed{-1.0f}; /**< Requested cruise speed. If not valid, default cruise speed is used. */ |
|
|
|
|
WaypointType _type{WaypointType::idle}; /**< Type of current target triplet. */ |
|
|
|
|
|
|
|
|
|
uORB::SubscriptionData<home_position_s> _sub_home_position{ORB_ID(home_position)}; |
|
|
|
@ -201,6 +208,8 @@ private:
@@ -201,6 +208,8 @@ private:
|
|
|
|
|
_triplet_next_wp; /**< next triplet from navigator which may differ from the intenal one (_next_wp) depending on the vehicle state.*/ |
|
|
|
|
matrix::Vector3f _closest_pt; /**< closest point to the vehicle position on the line previous - target */ |
|
|
|
|
|
|
|
|
|
hrt_abstime _commanded_speed_ts{0}; |
|
|
|
|
|
|
|
|
|
MapProjection _reference_position{}; /**< Class used to project lat/lon setpoint into local frame. */ |
|
|
|
|
float _reference_altitude{NAN}; /**< Altitude relative to ground. */ |
|
|
|
|
hrt_abstime _time_stamp_reference{0}; /**< time stamp when last reference update occured. */ |
|
|
|
|