Revert "AP_L1_Control: coverity scan - variables not initialized in constructor"

This reverts commit d558f32142.
This commit is contained in:
Tom Pittenger 2016-07-11 21:59:12 -07:00
parent 871219d199
commit be752164f4
1 changed files with 9 additions and 9 deletions

View File

@ -71,25 +71,25 @@ private:
// lateral acceration in m/s required to fly to the
// L1 reference point (+ve to right)
float _latAccDem = 0;
float _latAccDem;
// 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
bool _WPcircle = false;
bool _WPcircle;
// bearing angle (radians) to L1 point
float _nav_bearing = 0;
float _nav_bearing;
// bearing error angle (radians) +ve to left of track
float _bearing_error = 0;
float _bearing_error;
// crosstrack error in meters
float _crosstrack_error = 0;
float _crosstrack_error;
// target bearing in centi-degrees from last update
int32_t _target_bearing_cd = 0;
int32_t _target_bearing_cd;
// L1 tracking loop period (sec)
AP_Float _L1_period;
@ -97,7 +97,7 @@ private:
AP_Float _L1_damping;
// previous value of cross-track velocity
float _last_Nu = 0;
float _last_Nu;
// prevent indecision in waypoint tracking
void _prevent_indecision(float &Nu);
@ -107,6 +107,6 @@ private:
float _L1_xtrack_i = 0;
AP_Float _L1_xtrack_i_gain;
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;
};