mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-26 01:33:56 -04:00
AP_Compass: add name field to internal compass drivers
This commit is contained in:
parent
f7f90546d1
commit
1ddbafabdd
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user