mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-24 16:55:29 +03:00
changed mag orientation again... output seems a bit more sane now.
git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@99 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
This commit is contained in:
parent
57b289466d
commit
0545d79457
4 changed files with 65 additions and 69 deletions
|
@ -207,8 +207,12 @@ static void Mag_getRawADC(void)
|
|||
|
||||
// Hearty FUCK-YOU goes to all teh breakout sensor faggots who make a new orientation for each shitty board they make
|
||||
// sensor order: X Z Y
|
||||
magADC[ROLL] = rawADC[0]; // X or negative? who knows mag stuff in multiwii is broken hardcore
|
||||
magADC[PITCH] = rawADC[2]; // Y
|
||||
// magADC[ROLL] = rawADC[0]; // X or negative? who knows mag stuff in multiwii is broken hardcore
|
||||
// magADC[PITCH] = rawADC[2]; // Y
|
||||
|
||||
// no way? is this finally the proper orientation??
|
||||
magADC[ROLL] = -rawADC[2]; // X or negative? who knows mag stuff in multiwii is broken hardcore
|
||||
magADC[PITCH] = rawADC[0]; // Y
|
||||
magADC[YAW] = rawADC[1]; // Z
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue