clang-tidy remove redundant init

This commit is contained in:
Daniel Agar
2017-06-02 19:35:18 -04:00
parent 8a681397bf
commit 5d626bd940
13 changed files with 8 additions and 39 deletions
-1
View File
@@ -339,7 +339,6 @@ Ekf2::Ekf2():
_lp_roll_rate(250.0f, 30.0f),
_lp_pitch_rate(250.0f, 30.0f),
_lp_yaw_rate(250.0f, 20.0f),
_ekf(),
_params(_ekf.getParamHandle()),
_obs_dt_min_ms(this, "EKF2_MIN_OBS_DT", false, _params->sensor_interval_min_ms),
_mag_delay_ms(this, "EKF2_MAG_DELAY", false, _params->mag_delay_ms),
@@ -50,7 +50,7 @@
namespace land_detector
{
FixedwingLandDetector::FixedwingLandDetector() : LandDetector(),
FixedwingLandDetector::FixedwingLandDetector() :
_paramHandle(),
_params(),
_controlStateSub(-1),
@@ -49,7 +49,7 @@
namespace land_detector
{
MulticopterLandDetector::MulticopterLandDetector() : LandDetector(),
MulticopterLandDetector::MulticopterLandDetector() :
_paramHandle(),
_params(),
_vehicleLocalPositionSub(-1),
@@ -46,7 +46,7 @@
namespace land_detector
{
RoverLandDetector::RoverLandDetector() : LandDetector()
RoverLandDetector::RoverLandDetector()
{
}
@@ -46,7 +46,7 @@
namespace land_detector
{
VtolLandDetector::VtolLandDetector() : MulticopterLandDetector(),
VtolLandDetector::VtolLandDetector() :
_paramHandle(),
_params(),
_airspeedSub(-1),
@@ -148,10 +148,7 @@ BlockLocalPositionEstimator::BlockLocalPositionEstimator() :
// masks
_sensorTimeout(255),
_sensorFault(0),
_estimatorInitialized(0),
// kf matrices
_x(), _u(), _P(), _R_att(), _eul()
_estimatorInitialized(0)
{
// assign distance subs to array
_dist_subs[0] = &_sub_dist0;
-2
View File
@@ -248,7 +248,6 @@ Sensors *g_sensors = nullptr;
}
Sensors::Sensors(bool hil_enabled) :
_h_adc(),
_last_adc(0),
_task_should_exit(true),
@@ -270,7 +269,6 @@ Sensors::Sensors(bool hil_enabled) :
/* performance counters */
_loop_perf(perf_alloc(PC_ELAPSED, "sensors")),
_airspeed_validator(),
_rc_update(_parameters),
_voted_sensors_update(_parameters, hil_enabled)