mirror of
https://github.com/SlimeVR/SlimeVR-Tracker-ESP.git
synced 2026-04-06 02:01:57 +02:00
Fix MAG Device ID
This commit is contained in:
@@ -3397,7 +3397,7 @@ bool MPU9250_Base::testConnectionMagnetometer() {
|
||||
* @see MPU9250_RA_MAG_ADDRESS
|
||||
* @see MPU9250_RA_MAG_WHOAMI
|
||||
*/
|
||||
int8_t MPU9250_Base::getMagnetometerDeviceID() {
|
||||
uint8_t MPU9250_Base::getMagnetometerDeviceID() {
|
||||
// Set up magnetometer as slave 0 for reading
|
||||
I2Cdev::writeByte(devAddr, MPU9250_RA_I2C_SLV0_ADDR, MPU9250_RA_MAG_ADDRESS|0x80);
|
||||
// Start reading from WHO_AM_I register
|
||||
|
||||
@@ -851,7 +851,7 @@ class MPU9250_Base {
|
||||
// AK8963 Magnetomter Functions
|
||||
void initilaizeMagnetometer();
|
||||
bool testConnectionMagnetometer();
|
||||
int8_t getMagnetometerDeviceID();
|
||||
uint8_t getMagnetometerDeviceID();
|
||||
void getMagnetometerAdjustments(float *adjustments);
|
||||
void getMagnetometer(int16_t* x, int16_t* y, int16_t* z);
|
||||
int16_t getMagnetometerX();
|
||||
|
||||
Reference in New Issue
Block a user