mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 10:26:52 +08:00
Cosmetic - Use c++ list initialization
This commit is contained in:
committed by
Mathieu Bresciani
parent
15ec73629b
commit
e5128ac7b9
@@ -104,10 +104,10 @@ protected:
|
|||||||
uORB::SubscriptionPollable<vehicle_status_s> *_sub_vehicle_status{nullptr};
|
uORB::SubscriptionPollable<vehicle_status_s> *_sub_vehicle_status{nullptr};
|
||||||
|
|
||||||
State _current_state{State::none};
|
State _current_state{State::none};
|
||||||
float _target_acceptance_radius = 0.0f; /**< Acceptances radius of the target */
|
float _target_acceptance_radius{0.0f}; /**< Acceptances radius of the target */
|
||||||
int _mission_gear = landing_gear_s::GEAR_KEEP;
|
int _mission_gear{landing_gear_s::GEAR_KEEP};
|
||||||
|
|
||||||
float _yaw_sp_prev = NAN;
|
float _yaw_sp_prev{NAN};
|
||||||
bool _yaw_sp_aligned{false};
|
bool _yaw_sp_aligned{false};
|
||||||
|
|
||||||
ObstacleAvoidance _obstacle_avoidance; /**< class adjusting setpoints according to external avoidance module's input */
|
ObstacleAvoidance _obstacle_avoidance; /**< class adjusting setpoints according to external avoidance module's input */
|
||||||
@@ -124,7 +124,7 @@ protected:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
matrix::Vector2f _lock_position_xy{NAN, NAN}; /**< if no valid triplet is received, lock positition to current position */
|
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<position_setpoint_triplet_s> *_sub_triplet_setpoint{nullptr};
|
uORB::SubscriptionPollable<position_setpoint_triplet_s> *_sub_triplet_setpoint{nullptr};
|
||||||
|
|
||||||
matrix::Vector3f
|
matrix::Vector3f
|
||||||
@@ -136,11 +136,10 @@ private:
|
|||||||
matrix::Vector2f _closest_pt; /**< closest point to the vehicle position on the line previous - target */
|
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. */
|
map_projection_reference_s _reference_position{}; /**< Structure used to project lat/lon setpoint into local frame. */
|
||||||
float _reference_altitude = NAN; /**< Altitude relative to ground. */
|
float _reference_altitude{NAN}; /**< Altitude relative to ground. */
|
||||||
hrt_abstime _time_stamp_reference = 0; /**< time stamp when last reference update occured. */
|
hrt_abstime _time_stamp_reference{0}; /**< time stamp when last reference update occured. */
|
||||||
|
|
||||||
WeatherVane *_ext_yaw_handler =
|
WeatherVane *_ext_yaw_handler{nullptr}; /**< external weathervane library, used to implement a yaw control law that turns the vehicle nose into the wind */
|
||||||
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. */
|
void _limitYawRate(); /**< Limits the rate of change of the yaw setpoint. */
|
||||||
|
|||||||
@@ -65,6 +65,6 @@ protected:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
void _setSpeedAtTarget(); /**< Sets desiered speed at target */
|
void _setSpeedAtTarget(); /**< Sets desiered speed at target */
|
||||||
float _speed_at_target = 0.0f;
|
float _speed_at_target{0.0f};
|
||||||
bool _position_locked{false};
|
bool _position_locked{false};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user