ArduPlane: use static method to construct AP_TECS

This commit is contained in:
Lucas De Marchi 2017-08-30 10:49:51 -07:00 committed by Francisco Ferreira
parent 61a629d766
commit 05c870a4d4
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ private:
AP_AHRS_DCM ahrs = AP_AHRS_DCM::create(ins, barometer, gps);
#endif
AP_TECS TECS_controller {ahrs, aparm, landing, g2.soaring_controller};
AP_TECS TECS_controller = AP_TECS::create(ahrs, aparm, landing, g2.soaring_controller);
AP_L1_Control L1_controller {ahrs, &TECS_controller};
// Attitude to servo controllers