FlightTaskAuto: lock yaw once within acceptance radius

This commit is contained in:
Dennis Mannhart
2018-08-30 09:27:48 +02:00
committed by ChristophTobler
parent 72f1fca55c
commit 1f1c9fde01
2 changed files with 9 additions and 2 deletions
@@ -107,7 +107,7 @@ protected:
private:
matrix::Vector2f _lock_position_xy{NAN, NAN}; /**< if no valid triplet is received, lock positition to current position */
bool _yaw_lock = false; /**< if within acceptance radius, lock yaw to current yaw */
uORB::Subscription<position_setpoint_triplet_s> *_sub_triplet_setpoint{nullptr};
matrix::Vector3f