global: use static method to construct AP_AHRS_DCM

This commit is contained in:
Lucas De Marchi
2017-08-30 01:15:47 -07:00
committed by Francisco Ferreira
parent cd1ff7b86f
commit bfd13dfe87
6 changed files with 6 additions and 6 deletions

View File

@@ -19,7 +19,7 @@ static AP_Baro baro = AP_Baro::create();
static AP_SerialManager serial_manager = AP_SerialManager::create();
// choose which AHRS system to use
AP_AHRS_DCM ahrs(ins, baro, gps);
static AP_AHRS_DCM ahrs = AP_AHRS_DCM::create(ins, baro, gps);
void setup(void)
{