5
0
mirror of https://github.com/ArduPilot/ardupilot synced 2025-02-26 01:33:56 -04:00

Copter: changes for new AHRS API

This commit is contained in:
Andrew Tridgell 2015-06-01 16:16:59 +10:00
parent 9adc879253
commit bfb105fa5a
3 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,6 @@ Copter::Copter(void) :
ins_sample_rate(AP_InertialSensor::RATE_400HZ),
flight_modes(&g.flight_mode1),
sonar_enabled(true),
ahrs(ins, barometer, gps, sonar),
mission(ahrs,
FUNCTOR_BIND_MEMBER(&Copter::start_command, bool, const AP_Mission::Mission_Command &),
FUNCTOR_BIND_MEMBER(&Copter::verify_command, bool, const AP_Mission::Mission_Command &),

View File

@ -177,7 +177,8 @@ private:
#endif
// Inertial Navigation EKF
AP_AHRS_NavEKF ahrs;
NavEKF EKF{&ahrs, barometer, sonar};
AP_AHRS_NavEKF ahrs{ins, barometer, gps, sonar, EKF};
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
SITL sitl;

View File

@ -1004,7 +1004,7 @@ const AP_Param::Info Copter::var_info[] PROGMEM = {
#if AP_AHRS_NAVEKF_AVAILABLE
// @Group: EKF_
// @Path: ../libraries/AP_NavEKF/AP_NavEKF.cpp
GOBJECTN(ahrs.get_NavEKF(), NavEKF, "EKF_", NavEKF),
GOBJECTN(EKF, NavEKF, "EKF_", NavEKF),
#endif
// @Group: MIS_