mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
Replay: fixed build with new AP_Compass API
This commit is contained in:
parent
53275ab8af
commit
95a1ab0cab
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
extern const AP_HAL::HAL& hal;
|
extern const AP_HAL::HAL& hal;
|
||||||
|
|
||||||
LogReader::LogReader(AP_AHRS &_ahrs, AP_InertialSensor &_ins, AP_Baro &_baro, AP_Compass_HIL &_compass, AP_GPS &_gps, AP_Airspeed &_airspeed, DataFlash_Class &_dataflash) :
|
LogReader::LogReader(AP_AHRS &_ahrs, AP_InertialSensor &_ins, AP_Baro &_baro, Compass &_compass, AP_GPS &_gps, AP_Airspeed &_airspeed, DataFlash_Class &_dataflash) :
|
||||||
vehicle(VEHICLE_UNKNOWN),
|
vehicle(VEHICLE_UNKNOWN),
|
||||||
fd(-1),
|
fd(-1),
|
||||||
ahrs(_ahrs),
|
ahrs(_ahrs),
|
||||||
|
@ -20,7 +20,7 @@ enum log_messages {
|
|||||||
class LogReader
|
class LogReader
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
LogReader(AP_AHRS &_ahrs, AP_InertialSensor &_ins, AP_Baro &_baro, AP_Compass_HIL &_compass, AP_GPS &_gps, AP_Airspeed &_airspeed, DataFlash_Class &_dataflash);
|
LogReader(AP_AHRS &_ahrs, AP_InertialSensor &_ins, AP_Baro &_baro, Compass &_compass, AP_GPS &_gps, AP_Airspeed &_airspeed, DataFlash_Class &_dataflash);
|
||||||
bool open_log(const char *logfile);
|
bool open_log(const char *logfile);
|
||||||
bool update(uint8_t &type);
|
bool update(uint8_t &type);
|
||||||
bool wait_type(uint8_t type);
|
bool wait_type(uint8_t type);
|
||||||
@ -45,7 +45,7 @@ private:
|
|||||||
AP_AHRS &ahrs;
|
AP_AHRS &ahrs;
|
||||||
AP_InertialSensor &ins;
|
AP_InertialSensor &ins;
|
||||||
AP_Baro &baro;
|
AP_Baro &baro;
|
||||||
AP_Compass_HIL &compass;
|
Compass &compass;
|
||||||
AP_GPS &gps;
|
AP_GPS &gps;
|
||||||
AP_Airspeed &airspeed;
|
AP_Airspeed &airspeed;
|
||||||
DataFlash_Class &dataflash;
|
DataFlash_Class &dataflash;
|
||||||
|
@ -69,7 +69,7 @@ static Parameters g;
|
|||||||
static AP_InertialSensor ins;
|
static AP_InertialSensor ins;
|
||||||
static AP_Baro barometer;
|
static AP_Baro barometer;
|
||||||
static AP_GPS gps;
|
static AP_GPS gps;
|
||||||
static AP_Compass_HIL compass;
|
static Compass compass;
|
||||||
static AP_AHRS_NavEKF ahrs(ins, barometer, gps);
|
static AP_AHRS_NavEKF ahrs(ins, barometer, gps);
|
||||||
static AP_InertialNav_NavEKF inertial_nav(ahrs);
|
static AP_InertialNav_NavEKF inertial_nav(ahrs);
|
||||||
static AP_Vehicle::FixedWing aparm;
|
static AP_Vehicle::FixedWing aparm;
|
||||||
|
Loading…
Reference in New Issue
Block a user