mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_OpticalFlow: fix example sketch
This commit is contained in:
parent
a74833a04a
commit
e725ae866b
@ -23,7 +23,7 @@ public:
|
|||||||
Compass compass;
|
Compass compass;
|
||||||
AP_InertialSensor ins;
|
AP_InertialSensor ins;
|
||||||
AP_SerialManager serial_manager;
|
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 ahrs{ins, barometer, gps, sonar, EKF2, EKF3,
|
||||||
AP_AHRS_NavEKF::FLAG_ALWAYS_USE_EKF};
|
AP_AHRS_NavEKF::FLAG_ALWAYS_USE_EKF};
|
||||||
NavEKF2 EKF2{&ahrs, barometer, sonar};
|
NavEKF2 EKF2{&ahrs, barometer, sonar};
|
||||||
|
Loading…
Reference in New Issue
Block a user