AP_Compass: re-enable QMC5883 compass driver by default

This reverts commit a657daf635
This commit is contained in:
Francisco Ferreira 2017-09-27 12:19:54 +01:00
parent 776355ef2b
commit 6e286a2e66
No known key found for this signature in database
GPG Key ID: F63C20A6773E787E

View File

@ -520,16 +520,12 @@ void Compass::_detect_backends(void)
return; return;
} }
// default mask to disable some compasses
int32_t mask_default = 1U<<DRIVER_QMC5883;
#if CONFIG_HAL_BOARD == HAL_BOARD_PX4 #if CONFIG_HAL_BOARD == HAL_BOARD_PX4
if (AP_BoardConfig::get_board_type() == AP_BoardConfig::PX4_BOARD_PIXHAWK2) { if (AP_BoardConfig::get_board_type() == AP_BoardConfig::PX4_BOARD_PIXHAWK2) {
// default to disabling LIS3MDL on pixhawk2 due to hardware issue // default to disabling LIS3MDL on pixhawk2 due to hardware issue
mask_default |= 1U<<DRIVER_LIS3MDL; _driver_type_mask.set_default(1U<<DRIVER_LIS3MDL);
} }
#endif #endif
_driver_type_mask.set_default(mask_default);
/* /*
macro to add a backend with check for too many backends or compass macro to add a backend with check for too many backends or compass