Hello guest, if you read this it means you are not registered. Click here to register in a few simple steps, you will enjoy all features of our Forum.
This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Another Magnetometer Question
#1
Hi, this magnetometer drives me crazy; i thought i had solved the alignment problem with setting it to 90°Flip, but it still doesnt't work.

I have a BN-880 with magnetometer. i have mounted it in the opposite direction of that one it normally should be mounted according to this picture. https://imgaz.staticbg.com/images/upload...2.jpg.webp
(otherwise that could be dangerous for the wires)

also, it is tilted by approx. 25° to the back. i send a photo on which i placed a second bn-880 which should show how the orientation of the bn-880 in the black box.

SO what do you think? DO i have to remount the BN880 so that the wires come out of the back? to you have a similar setup and could send your align_mag values? or just a suggestion?

my brain (or my english) really has problems with the explanation on https://github.com/iNavFlight/inav/wiki/...pass-setup


Attached Files Thumbnail(s)
   
Reply
Login to remove this ad | Register Here
#2
Before you did the 90 degree flip setting did you attempt poining the quad north and then hitting calibrate on the magnometer?

I cant remember where the button is, might be on the first screen where you can move your quad and see it move on screen
I'm really IntoFPV
Youtube|Instagram|Facebook|Steam
Don't forget to rate people who have helped you!
Reply
#3
I don't know, it feels like i recalibrated and changed the alignment parameters thousands of times over the weekend. Mostly i changed the alignment and calibrated AFTER changing alignment, sometimes with forgetting to click on "save and reboot" after calibrating. Is it necessary to start that in north position? in the INAV navigator the process is just described like this: "After pressing the button you have 30 seconds to hold the copter in the air and rotate it so that each side (front, back, left, right, top and bottom) points down towards the earth."

Now, i did it like you say, switched back to default alignment, calibrated starting with facing north, than switched back to CW 90 flip, but it didn't work.
Reply
#4
when i
set align_mag_yaw = 900 &
set align_mag_pitch = 1550
the copter in the "setup" has nearly no drift anymore. but the heading is still completely wrong (north 98° east 111° south 145° west 166°). whatever that means.
Reply
#5
this link in the official wiki is interesteing: https://github.com/iNavFlight/inav/issue...-727636397
especially this paragraph:

"If your Compass is mounted with a Tilt by 45 degree, Just Look at your Sensor Tab. Figure out wich AXIS beside Z is wrong by 45 degree too. Z (Yaw) is always wrong at such a mounting type)
If it's the Y (Roll) , make the Change by add or take 450 to/from your X (Pitch) .
And If it's the X (Pitch) Do this at your Y (Roll) instead ."

but i didn't get yet, HOW to "Figure out wich AXIS beside Z is wrong by 45 degree too" with the sensors tab. there are no degrees, and how could i identify what is wrong and what not?

hmmm ...
Reply
#6
From your link:

Magnetometer should have the same readings but in negative to the Accelerometer.

So to figure out which axis of mag is wrong compare to same axis of acc.
[-] The following 1 user Likes Major Tom's post:
  • Cyfly
Reply
#7
Thank you, will have a look lateron with enough time, maybe i didn't understand that because of the sentence "Figure out wich AXIS beside Z is wrong by 45 degree too." and i wondered how to see if s.th. is wrong _by 45 (or whatever) degree_.
Reply
#8
maybe i have it now.
align_mag_roll = 200 - this was negative first, because the bn-880 is mounted with a backward tilt. i hope 20° is correct, i have no good tool to measure the angle except my mobile.
align_mag_pitch = 1800
align_mag_yaw = 900
Reply
#9
I guess it's exactly how it has to be. If you take your board and roll it 20 deg to the right (left side goes up) - then flip it 180 deg on the pitch axis - left side goes down, right side up - then yaw it 90 deg CCW (because the board is reversed) - you will get your board tilted backwards.
[-] The following 1 user Likes Major Tom's post:
  • Cyfly
Reply
#10
my BN880 orientation only is correct with FLIP 270 setting
[-] The following 1 user Likes imrj's post:
  • Cyfly
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  compass wiring question Trankilo 2 278 15-Dec-2023, 10:04 AM
Last Post: Trankilo
  magnetometer on Matek M8Q-5883 koklimabc 4 1,240 08-Mar-2023, 07:54 AM
Last Post: koklimabc
  Magnetometer not working niuk 8 1,359 24-Jul-2022, 02:50 AM
Last Post: Pappson
  Magnetometer/INAV MTRotor 11 5,802 27-Mar-2022, 10:36 AM
Last Post: Frizi
  iNav 2.6 aligning magnetometer(a compass) jimv 39 16,829 23-Jan-2022, 09:11 PM
Last Post: kefear


Login to remove this ad | Register Here