mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-26 09:43:57 -04:00
Copter: changes for new AHRS API
This commit is contained in:
parent
9adc879253
commit
bfb105fa5a
@ -28,7 +28,6 @@ Copter::Copter(void) :
|
|||||||
ins_sample_rate(AP_InertialSensor::RATE_400HZ),
|
ins_sample_rate(AP_InertialSensor::RATE_400HZ),
|
||||||
flight_modes(&g.flight_mode1),
|
flight_modes(&g.flight_mode1),
|
||||||
sonar_enabled(true),
|
sonar_enabled(true),
|
||||||
ahrs(ins, barometer, gps, sonar),
|
|
||||||
mission(ahrs,
|
mission(ahrs,
|
||||||
FUNCTOR_BIND_MEMBER(&Copter::start_command, bool, const AP_Mission::Mission_Command &),
|
FUNCTOR_BIND_MEMBER(&Copter::start_command, bool, const AP_Mission::Mission_Command &),
|
||||||
FUNCTOR_BIND_MEMBER(&Copter::verify_command, bool, const AP_Mission::Mission_Command &),
|
FUNCTOR_BIND_MEMBER(&Copter::verify_command, bool, const AP_Mission::Mission_Command &),
|
||||||
|
@ -177,7 +177,8 @@ private:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Inertial Navigation EKF
|
// 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
|
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
||||||
SITL sitl;
|
SITL sitl;
|
||||||
|
@ -1004,7 +1004,7 @@ const AP_Param::Info Copter::var_info[] PROGMEM = {
|
|||||||
#if AP_AHRS_NAVEKF_AVAILABLE
|
#if AP_AHRS_NAVEKF_AVAILABLE
|
||||||
// @Group: EKF_
|
// @Group: EKF_
|
||||||
// @Path: ../libraries/AP_NavEKF/AP_NavEKF.cpp
|
// @Path: ../libraries/AP_NavEKF/AP_NavEKF.cpp
|
||||||
GOBJECTN(ahrs.get_NavEKF(), NavEKF, "EKF_", NavEKF),
|
GOBJECTN(EKF, NavEKF, "EKF_", NavEKF),
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// @Group: MIS_
|
// @Group: MIS_
|
||||||
|
Loading…
Reference in New Issue
Block a user