Replay: pass range finder into ahrs constructor

This commit is contained in:
Randy Mackay 2015-04-24 11:27:27 +09:00
parent d5934343d4
commit 1f58cb9980

View File

@ -70,7 +70,8 @@ static AP_InertialSensor ins;
static AP_Baro barometer; static AP_Baro barometer;
static AP_GPS gps; static AP_GPS gps;
static Compass compass; static Compass compass;
static AP_AHRS_NavEKF ahrs(ins, barometer, gps); static RangeFinder rng;
static AP_AHRS_NavEKF ahrs(ins, barometer, gps, rng);
static AP_InertialNav_NavEKF inertial_nav(ahrs); static AP_InertialNav_NavEKF inertial_nav(ahrs);
static AP_Vehicle::FixedWing aparm; static AP_Vehicle::FixedWing aparm;
static AP_Airspeed airspeed(aparm); static AP_Airspeed airspeed(aparm);