|
|
|
@ -42,6 +42,7 @@
@@ -42,6 +42,7 @@
|
|
|
|
|
#include <AP_InertialSensor/AP_InertialSensor.h> // Inertial Sensor (uncalibated IMU) Library |
|
|
|
|
#include <AP_AHRS/AP_AHRS.h> // ArduPilot Mega DCM Library |
|
|
|
|
#include <AP_NavEKF/AP_NavEKF.h> |
|
|
|
|
#include <AP_NavEKF2/AP_NavEKF2.h> |
|
|
|
|
#include <AP_Mission/AP_Mission.h> // Mission command library |
|
|
|
|
#include <AP_Rally/AP_Rally.h> |
|
|
|
|
#include <AP_Terrain/AP_Terrain.h> |
|
|
|
@ -152,7 +153,8 @@ private:
@@ -152,7 +153,8 @@ private:
|
|
|
|
|
// Inertial Navigation EKF
|
|
|
|
|
#if AP_AHRS_NAVEKF_AVAILABLE |
|
|
|
|
NavEKF EKF{&ahrs, barometer, sonar}; |
|
|
|
|
AP_AHRS_NavEKF ahrs {ins, barometer, gps, sonar, EKF}; |
|
|
|
|
NavEKF2 EKF2{&ahrs, barometer, sonar}; |
|
|
|
|
AP_AHRS_NavEKF ahrs {ins, barometer, gps, sonar, EKF, EKF2}; |
|
|
|
|
#else |
|
|
|
|
AP_AHRS_DCM ahrs {ins, barometer, gps}; |
|
|
|
|
#endif |
|
|
|
|