mirror of https://github.com/ArduPilot/ardupilot
AP_Baro: remove zero-init in constructor
This commit is contained in:
parent
1d81df8144
commit
84ce499a0d
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue