diff --git a/libraries/AP_OpticalFlow/examples/AP_OpticalFlow_test/AP_OpticalFlow_test.cpp b/libraries/AP_OpticalFlow/examples/AP_OpticalFlow_test/AP_OpticalFlow_test.cpp index d61bdf218a..0d154ef6f8 100644 --- a/libraries/AP_OpticalFlow/examples/AP_OpticalFlow_test/AP_OpticalFlow_test.cpp +++ b/libraries/AP_OpticalFlow/examples/AP_OpticalFlow_test/AP_OpticalFlow_test.cpp @@ -23,7 +23,7 @@ public: Compass compass; AP_InertialSensor ins; AP_SerialManager serial_manager; - RangeFinder sonar {serial_manager}; + RangeFinder sonar {serial_manager, ROTATION_PITCH_270}; AP_AHRS_NavEKF ahrs{ins, barometer, gps, sonar, EKF2, EKF3, AP_AHRS_NavEKF::FLAG_ALWAYS_USE_EKF}; NavEKF2 EKF2{&ahrs, barometer, sonar};