AP_AHRS: fix example sketch

This commit is contained in:
Randy Mackay 2017-02-09 21:02:47 +09:00
parent 65c8f87b17
commit a74833a04a
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ AP_SerialManager serial_manager;
class DummyVehicle {
public:
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};