forked from Archive/PX4-Autopilot
Cosmetic - Use c++ list initialization
This commit is contained in:
parent
15ec73629b
commit
e5128ac7b9
|
@ -104,10 +104,10 @@ protected:
|
|||
uORB::SubscriptionPollable<vehicle_status_s> *_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<position_setpoint_triplet_s> *_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. */
|
||||
|
|
|
@ -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};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue