AP_Compass: add name field to internal compass drivers

This commit is contained in:
Lucas De Marchi 2016-05-13 13:47:05 -03:00
parent f7f90546d1
commit 1ddbafabdd
4 changed files with 8 additions and 0 deletions

View File

@ -29,6 +29,8 @@ public:
/* Probe for AK8963 on auxiliary bus of MPU9250, connected through SPI */
static AP_Compass_Backend *probe_mpu9250(Compass &compass, uint8_t mpu9250_instance);
static constexpr const char *name = "AK8963";
virtual ~AP_Compass_AK8963();
bool init() override;

View File

@ -23,6 +23,8 @@ public:
static AP_Compass_Backend *probe_mpu6000(Compass &compass);
static constexpr const char *name = "HMC5843";
virtual ~AP_Compass_HMC5843();
bool init() override;

View File

@ -15,6 +15,8 @@ public:
static AP_Compass_Backend *probe(Compass &compass,
AP_HAL::OwnPtr<AP_HAL::Device> dev);
static constexpr const char *name = "LSM303D";
bool init() override;
void read() override;

View File

@ -14,6 +14,8 @@ public:
static AP_Compass_Backend *probe(Compass &compass,
AP_HAL::OwnPtr<AP_HAL::Device> dev);
static constexpr const char *name = "LSM9DS1";
bool init() override;
void read() override;