AP_OpticalFlow: fix example sketch

This commit is contained in:
Randy Mackay 2017-02-09 21:03:15 +09:00
parent a74833a04a
commit e725ae866b

View File

@ -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};