I installed my magnetometer recently and it seems to be working nicely when looking at the CLI test. havnt flown yet though.

 

I was curious and decided to compare the magnetometer with a standard needle compass. I found that one of the 2 are about 5-10 degrees out.

 

Its not a lucky packet or chrismas cracker compass that I have, its quite a decent one so im pretty sure its facing magnetic north.

 

I might be getting ahead of myself here so the question is, should the front arm of my quad point in the same direction as the compass needle or is there some kind of explination for the slight offset?

 

I have double checked my declination. it is 17*44' negative. in South Africa, Pretoria.

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Developer

    to compare the arducopter compass and the regular compass, you should set the declination to zero in the CLI.  If you don't do this, the ardu mag will show you true north instead of mag north (true north is important for position hold).

     

    the other difference between the two will be the offsets.  If you haven't flown your quad yet, the offsets will be all zero and this will lead to some inaccuracy in the headings returned by the ardu mag.  If you fly it (or wave it around in the air for more than 4 minutes), the offsets should be updated and saved to eeprom (you can check via the CLi).

     

    after all that I'd expect they'd be pretty close but even then 5 degrees of difference isn't much...we only need it to be accurate enough to stop yaw drift and work for position hold.

     

     

     

     

This reply was deleted.

Activity

DIY Robocars via Twitter
RT @a1k0n: Sync'd @joshu's GoPro w/ my datalogging; video is 2.5X speed, Google imagery upper-right. Found out my track boundaries are WAY…
yesterday
DIY Robocars via Twitter
RT @a1k0n: Also, at 45mph, the front tires literally blow up like a balloon and it doesn't have much front traction, so the car becomes fai…
yesterday
DIY Robocars via Twitter
RT @a1k0n: Okay, some datalogs! Green dots are precalculated racing line (from my crummy optimizer -- it veers to the middle after 2 for Re…
yesterday
DIY Robocars via Twitter
RT @a1k0n: Welp my @selfracingcars entry, hastily conceived heading filter and all, actually worked! Heading home, datalogs and videos to f…
yesterday
DIY Robocars via Twitter
Monday
DIY Robocars via Twitter
Friday
DIY Robocars via Twitter
RT @f1tenth: What can we learn from autonomous racing? Actually, a lot! To get an idea what you can do in this field and where the research…
Oct 11
DIY Robocars via Twitter
Oct 11
DIY Robocars via Twitter
RT @a1k0n: It's aliiiiiive! Less than a week until @selfracingcars and I'm just now digging this bad boy out. Been a crazy few months. Hope…
Oct 10
DIY Robocars via Twitter
RT @OttawaAVGroup: Mark your calendars. CAV Canada is happening on Dec. 2nd, 10am-4pm EST. And guess what - admission is FREE! Get your ti…
Oct 6
DIY Robocars via Twitter
RT @f1tenth: Our new 1:10 scale 3D racetrack is here. We will implement it in the @SVLSimulator in the next weeks so everybody can use it.…
Oct 6
DIY Robocars via Twitter
RT @DAVGtech: Received sweet autonomous Ferrari's that we plan to demo at the @IndyAChallenge on our portable @donkey_car track. Let us kno…
Oct 6
DIY Robocars via Twitter
Sep 30
DIY Robocars via Twitter
Sep 9
DIY Robocars via Twitter
RT @chr1sa: We've got another virtual @DIYRobocars race tomorrow at 9:00am PT. Two dozen autonomous cars will compete, four at a time. Ther…
Sep 4
DIY Robocars via Twitter
Sep 1
More…