1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 12:55:19 +03:00

Merge pull request #5072 from elepete/master

Changed AK8963 axis inversion
This commit is contained in:
Michael Keller 2018-02-02 00:50:28 +13:00 committed by GitHub
commit fced5f009b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -330,9 +330,9 @@ static bool ak8963Read(magDev_t *mag, int16_t *magData)
return false;
}
magData[X] = -parseMag(buf + 0, mag->magGain[X]);
magData[Y] = -parseMag(buf + 2, mag->magGain[Y]);
magData[Z] = -parseMag(buf + 4, mag->magGain[Z]);
magData[X] = parseMag(buf + 0, mag->magGain[X]);
magData[Y] = parseMag(buf + 2, mag->magGain[Y]);
magData[Z] = parseMag(buf + 4, mag->magGain[Z]);
return true;
}

View file

@ -74,7 +74,7 @@
#define USE_MAG_AK8963
//#define USE_MAG_HMC5883 // External
#define MAG_AK8963_ALIGN CW90_DEG_FLIP
#define MAG_AK8963_ALIGN CW270_DEG_FLIP
//#define USE_RANGEFINDER
//#define USE_RANGEFINDER_HCSR04