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:
commit
fced5f009b
2 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue