diff --git a/src/lib/FlightTasks/tasks/Auto/FlightTaskAuto.hpp b/src/lib/FlightTasks/tasks/Auto/FlightTaskAuto.hpp index aaa63da236..fd36156bf4 100644 --- a/src/lib/FlightTasks/tasks/Auto/FlightTaskAuto.hpp +++ b/src/lib/FlightTasks/tasks/Auto/FlightTaskAuto.hpp @@ -104,10 +104,10 @@ protected: uORB::SubscriptionPollable *_sub_vehicle_status{nullptr}; State _current_state{State::none}; - float _target_acceptance_radius = 0.0f; /**< Acceptances radius of the target */ - int _mission_gear = landing_gear_s::GEAR_KEEP; + float _target_acceptance_radius{0.0f}; /**< Acceptances radius of the target */ + int _mission_gear{landing_gear_s::GEAR_KEEP}; - float _yaw_sp_prev = NAN; + float _yaw_sp_prev{NAN}; bool _yaw_sp_aligned{false}; ObstacleAvoidance _obstacle_avoidance; /**< class adjusting setpoints according to external avoidance module's input */ @@ -124,7 +124,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 */ + bool _yaw_lock{false}; /**< if within acceptance radius, lock yaw to current yaw */ uORB::SubscriptionPollable *_sub_triplet_setpoint{nullptr}; matrix::Vector3f @@ -136,11 +136,10 @@ private: matrix::Vector2f _closest_pt; /**< closest point to the vehicle position on the line previous - target */ map_projection_reference_s _reference_position{}; /**< Structure 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. */ + float _reference_altitude{NAN}; /**< Altitude relative to ground. */ + hrt_abstime _time_stamp_reference{0}; /**< time stamp when last reference update occured. */ - WeatherVane *_ext_yaw_handler = - nullptr; /**< external weathervane library, used to implement a yaw control law that turns the vehicle nose into the wind */ + WeatherVane *_ext_yaw_handler{nullptr}; /**< external weathervane library, used to implement a yaw control law that turns the vehicle nose into the wind */ void _limitYawRate(); /**< Limits the rate of change of the yaw setpoint. */ diff --git a/src/lib/FlightTasks/tasks/AutoLine/FlightTaskAutoLine.hpp b/src/lib/FlightTasks/tasks/AutoLine/FlightTaskAutoLine.hpp index 9b0c2d623b..338045bdad 100644 --- a/src/lib/FlightTasks/tasks/AutoLine/FlightTaskAutoLine.hpp +++ b/src/lib/FlightTasks/tasks/AutoLine/FlightTaskAutoLine.hpp @@ -65,6 +65,6 @@ protected: private: void _setSpeedAtTarget(); /**< Sets desiered speed at target */ - float _speed_at_target = 0.0f; + float _speed_at_target{0.0f}; bool _position_locked{false}; };