AP_OpticalFlow: Fix example rangefinder init

This commit is contained in:
Michael du Breuil 2019-04-05 12:39:29 -07:00 committed by Peter Barker
parent 3a25897ab4
commit ca260623cb

View File

@ -26,7 +26,7 @@ public:
Compass compass;
AP_InertialSensor ins;
AP_SerialManager serial_manager;
RangeFinder sonar{serial_manager, ROTATION_PITCH_270};
RangeFinder sonar{serial_manager};
AP_AHRS_NavEKF ahrs{EKF2, EKF3, AP_AHRS_NavEKF::FLAG_ALWAYS_USE_EKF};
NavEKF2 EKF2{&ahrs, sonar};
NavEKF3 EKF3{&ahrs, sonar};