SITL: Changes in compass for SITL
This commit is contained in:
parent
6467e5b3ee
commit
033bd243d6
@ -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");
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user