mirror of https://github.com/ArduPilot/ardupilot
Revert "AP_L1_Control: coverity scan - variables not initialized in constructor"
This reverts commit d558f32142
.
This commit is contained in:
parent
871219d199
commit
be752164f4
|
@ -71,25 +71,25 @@ private:
|
||||||
|
|
||||||
// lateral acceration in m/s required to fly to the
|
// lateral acceration in m/s required to fly to the
|
||||||
// L1 reference point (+ve to right)
|
// L1 reference point (+ve to right)
|
||||||
float _latAccDem = 0;
|
float _latAccDem;
|
||||||
|
|
||||||
// L1 tracking distance in meters which is dynamically updated
|
// L1 tracking distance in meters which is dynamically updated
|
||||||
float _L1_dist = 0;
|
float _L1_dist;
|
||||||
|
|
||||||
// Status which is true when the vehicle has started circling the WP
|
// Status which is true when the vehicle has started circling the WP
|
||||||
bool _WPcircle = false;
|
bool _WPcircle;
|
||||||
|
|
||||||
// bearing angle (radians) to L1 point
|
// bearing angle (radians) to L1 point
|
||||||
float _nav_bearing = 0;
|
float _nav_bearing;
|
||||||
|
|
||||||
// bearing error angle (radians) +ve to left of track
|
// bearing error angle (radians) +ve to left of track
|
||||||
float _bearing_error = 0;
|
float _bearing_error;
|
||||||
|
|
||||||
// crosstrack error in meters
|
// crosstrack error in meters
|
||||||
float _crosstrack_error = 0;
|
float _crosstrack_error;
|
||||||
|
|
||||||
// target bearing in centi-degrees from last update
|
// target bearing in centi-degrees from last update
|
||||||
int32_t _target_bearing_cd = 0;
|
int32_t _target_bearing_cd;
|
||||||
|
|
||||||
// L1 tracking loop period (sec)
|
// L1 tracking loop period (sec)
|
||||||
AP_Float _L1_period;
|
AP_Float _L1_period;
|
||||||
|
@ -97,7 +97,7 @@ private:
|
||||||
AP_Float _L1_damping;
|
AP_Float _L1_damping;
|
||||||
|
|
||||||
// previous value of cross-track velocity
|
// previous value of cross-track velocity
|
||||||
float _last_Nu = 0;
|
float _last_Nu;
|
||||||
|
|
||||||
// prevent indecision in waypoint tracking
|
// prevent indecision in waypoint tracking
|
||||||
void _prevent_indecision(float &Nu);
|
void _prevent_indecision(float &Nu);
|
||||||
|
@ -107,6 +107,6 @@ private:
|
||||||
float _L1_xtrack_i = 0;
|
float _L1_xtrack_i = 0;
|
||||||
AP_Float _L1_xtrack_i_gain;
|
AP_Float _L1_xtrack_i_gain;
|
||||||
float _L1_xtrack_i_gain_prev = 0;
|
float _L1_xtrack_i_gain_prev = 0;
|
||||||
uint32_t _last_update_waypoint_us = 0;
|
uint32_t _last_update_waypoint_us;
|
||||||
bool _data_is_stale = true;
|
bool _data_is_stale = true;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue