AP_SmartRTL: use baro singleton

This commit is contained in:
Peter Barker 2018-03-06 08:06:50 +11:00 committed by Lucas De Marchi
parent 82a68a82e6
commit a40943038e
1 changed files with 3 additions and 3 deletions

View File

@ -21,9 +21,9 @@ static AP_SerialManager serial_manager;
class DummyVehicle {
public:
RangeFinder rangefinder{serial_manager, ROTATION_PITCH_270};
NavEKF2 EKF2{&ahrs, barometer, rangefinder};
NavEKF3 EKF3{&ahrs, barometer, rangefinder};
AP_AHRS_NavEKF ahrs{ins, barometer, EKF2, EKF3, AP_AHRS_NavEKF::FLAG_ALWAYS_USE_EKF};
NavEKF2 EKF2{&ahrs, rangefinder};
NavEKF3 EKF3{&ahrs, rangefinder};
AP_AHRS_NavEKF ahrs{ins, EKF2, EKF3, AP_AHRS_NavEKF::FLAG_ALWAYS_USE_EKF};
};
static DummyVehicle vehicle;