SITL: Changes in compass for SITL

This commit is contained in:
Vic 2014-11-16 16:32:26 -08:00 committed by Andrew Tridgell
parent 6467e5b3ee
commit 033bd243d6
2 changed files with 4 additions and 4 deletions

View File

@ -67,7 +67,7 @@ float SITL_State::_current;
AP_Baro *SITL_State::_barometer;
AP_InertialSensor *SITL_State::_ins;
SITLScheduler *SITL_State::_scheduler;
AP_Compass_HIL *SITL_State::_compass;
Compass *SITL_State::_compass;
OpticalFlow *SITL_State::_optical_flow;
AP_Terrain *SITL_State::_terrain;
@ -215,7 +215,7 @@ void SITL_State::_sitl_setup(void)
_sitl = (SITL *)AP_Param::find_object("SIM_");
_barometer = (AP_Baro *)AP_Param::find_object("GND_");
_ins = (AP_InertialSensor *)AP_Param::find_object("INS_");
_compass = (AP_Compass_HIL *)AP_Param::find_object("COMPASS_");
_compass = (Compass *)AP_Param::find_object("COMPASS_");
_terrain = (AP_Terrain *)AP_Param::find_object("TERRAIN_");
_optical_flow = (OpticalFlow *)AP_Param::find_object("FLOW");

View File

@ -18,7 +18,7 @@
#include "../AP_Baro/AP_Baro.h"
#include "../AP_InertialSensor/AP_InertialSensor.h"
#include "../AP_Compass/AP_Compass.h"
#include "../AP_Compass/Compass.h"
#include "../AP_OpticalFlow/AP_OpticalFlow.h"
#include "../AP_Terrain/AP_Terrain.h"
#include "../SITL/SITL.h"
@ -128,7 +128,7 @@ private:
static AP_Baro *_barometer;
static AP_InertialSensor *_ins;
static SITLScheduler *_scheduler;
static AP_Compass_HIL *_compass;
static Compass *_compass;
static OpticalFlow *_optical_flow;
static AP_Terrain *_terrain;