Compass: fix compile warning re member init order

This commit is contained in:
Tom Pittenger 2015-04-24 14:12:41 +09:00 committed by Randy Mackay
parent 179c72bfa9
commit 16e71ec1ce
2 changed files with 2 additions and 2 deletions

View File

@ -60,6 +60,7 @@ extern const AP_HAL::HAL& hal;
// constructor
AP_Compass_HMC5843::AP_Compass_HMC5843(Compass &compass):
AP_Compass_Backend(compass),
_retry_time(0),
_i2c_sem(NULL),
_mag_x(0),
_mag_y(0),
@ -70,7 +71,6 @@ AP_Compass_HMC5843::AP_Compass_HMC5843(Compass &compass):
_accum_count(0),
_last_accum_time(0),
_compass_instance(0),
_retry_time(0),
_product_id(0)
{}

View File

@ -277,10 +277,10 @@ const AP_Param::GroupInfo Compass::var_info[] PROGMEM = {
Compass::Compass(void) :
_last_update_usec(0),
_null_init_done(false),
_thr_or_curr(0.0f),
_backend_count(0),
_compass_count(0),
_board_orientation(ROTATION_NONE),
_thr_or_curr(0.0f),
_hil_mode(false)
{
AP_Param::setup_object_defaults(this, var_info);