AP_Baro: remove zero-init in constructor

This commit is contained in:
Tom Pittenger 2016-07-11 22:11:34 -07:00
parent 1d81df8144
commit 84ce499a0d
1 changed files with 1 additions and 11 deletions

View File

@ -80,18 +80,8 @@ const AP_Param::GroupInfo AP_Baro::var_info[] = {
/*
AP_Baro constructor
*/
AP_Baro::AP_Baro() :
_num_drivers(0),
_num_sensors(0),
_primary(0),
_last_altitude_EAS2TAS(0.0f),
_EAS2TAS(0.0f),
_external_temperature(0.0f),
_last_external_temperature_ms(0),
_hil_mode(false)
AP_Baro::AP_Baro()
{
memset(sensors, 0, sizeof(sensors));
AP_Param::setup_object_defaults(this, var_info);
}