Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
automatic inflight magnetometer alignment
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  16 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
William Premerlani  
View profile  
 More options Oct 9 2011, 10:44 pm
From: William Premerlani <wpremerl...@gmail.com>
Date: Sun, 9 Oct 2011 22:44:09 -0400
Local: Sun, Oct 9 2011 10:44 pm
Subject: automatic inflight magnetometer alignment

Team,

r1053 of MatrixPilot trunk has an improvement to the magnetometer
calculations to automatically compensate for misalignment of the
magnetometer. If you are using a magnetometer with the UDB, you would do
well to use this latest version.

Because the UDB and the magnetometer are mounted separately, it is possible
for there to be a slight misalignment between the two. Because of the strong
vertical component of the earth's magnetic field in many parts of the world,
the errors due to misalignment get magnified. For example, where I fly, the
vertical component of the magnetic field is 3 times as large as the
horizontal component. So, for example, a 5 degree roll or pitch misalignment
between the UDB and the magnetometer can produce a 15 degree error in the
yaw information provided by the magnetometer.

Fortunately, there is enough information during rotation of the plane to
determine the misalignment. The misalignment causes a shift in the computed
magnetic field in the earth frame of reference. The shift serves as the
starting point for calculations that infer the misalignment. I have revised
the MatrixPilot magnetometer driver to compute, and correct for slight
misalignment of the magnetometer. The result is improved accuracy in those
situations in which the magnetometer alignment is not precise.

For those who might be interested in how the adjustments are computed, I
plan to eventually write a paper on the subject.

Best regards,
Bill


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Murali- VU3MUV  
View profile  
 More options Oct 10 2011, 2:16 pm
From: Murali- VU3MUV <vu3...@gmail.com>
Date: Mon, 10 Oct 2011 23:46:27 +0530
Local: Mon, Oct 10 2011 2:16 pm
Subject: Re: automatic inflight magnetometer alignment

Thanks Billu Bhaya & team for continues improvements to MP, it gets better
and better . All we folks can do is fly it and have fun.

Kind regards
Morli

On Mon, Oct 10, 2011 at 8:14 AM, William Premerlani
<wpremerl...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
William Premerlani  
View profile  
 More options Oct 12 2011, 5:43 pm
From: William Premerlani <wpremerl...@gmail.com>
Date: Wed, 12 Oct 2011 17:43:49 -0400
Local: Wed, Oct 12 2011 5:43 pm
Subject: Re: automatic inflight magnetometer alignment

Team,
I made a couple of additional minor revisions to the magnetometer yaw drift
compensation that will further improve performance. If you are using a
magnetometer, I recommend r1055 of MatrixPilot trunk.
Morli,
I always enjoy hearing from you. I hope that you are having fun.
Best regards,
Billu Bhaya


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
William Premerlani  
View profile  
 More options Oct 14 2011, 10:37 am
From: William Premerlani <wpremerl...@gmail.com>
Date: Fri, 14 Oct 2011 10:37:14 -0400
Local: Fri, Oct 14 2011 10:37 am
Subject: Re: automatic inflight magnetometer alignment

Team,

I made yet a few more improvements to the magnetometer software in r1060 of
MatrixPilot trunk. At this point I am completely satisfied with it, I don't
think there are any more improvements possible. In any case, I am now going
to move on to the next research topic on my list, after I write up a report.

Here are the changes in r1060:

1. There is a completely new magnetometer offset removal algorithm that is
more accurate than the previous one in the face of magnetometer
misalignment.

2. Realignment is done with a full rotation matrix that can handle any
amount of misalignment.

Attached are a few plots of the test results, including cases of
magnetometer yaw misalignment of 10, 90 and 180 degrees.

In other words, with the new software, you can mount the magnetometer in any
orientation whatsoever, and the software can figure it out and compensate
perfectly. That said, you should mount your magnetometer within 10 degrees
of the correct alignment, that way the software will compensate for the
misalignment more quickly.

Best regards,
Bill

On Wed, Oct 12, 2011 at 5:43 PM, William Premerlani
<wpremerl...@gmail.com>wrote:

  spinTest.pdf
39K Download

  10DegreeYaw.pdf
50K Download

  90DegreeYaw.pdf
54K Download

  180DegreeYaw.pdf
59K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Murali- VU3MUV  
View profile  
 More options Oct 14 2011, 2:29 pm
From: Murali- VU3MUV <vu3...@gmail.com>
Date: Fri, 14 Oct 2011 23:59:03 +0530
Local: Fri, Oct 14 2011 2:29 pm
Subject: Re: automatic inflight magnetometer alignment

*thanks Billu Bhaiya,
Yes we are all having fun , a ton of it is just because of you as always (
other ton/s are because of the team as we know).  I can only imagine like
most of us as to how many hours of mathematics/brain storming goes into
these improvements.I only wish I can understand it. I am waiting for right
tide to wash me into  right current sooner or later. Once again wishing
every one best and happy Indian Depawali ( a celebration with/ of fire
crackers and lights). It is either magnetometer or UDB4 for me this this
festive season :))))

kind regards
Morli

*
On Thu, Oct 13, 2011 at 3:13 AM, William Premerlani
<wpremerl...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
William Premerlani  
View profile  
 More options Oct 14 2011, 6:59 pm
From: William Premerlani <wpremerl...@gmail.com>
Date: Fri, 14 Oct 2011 18:59:44 -0400
Local: Fri, Oct 14 2011 6:59 pm
Subject: Re: automatic inflight magnetometer alignment

Hi Morli,

Thanks. This time I became obsessed, and spent most of 3 weeks thinking
about magnetometer alignment, and coming up with better and better ideas.
Most of the creative thinking was done while I was bicycling.

If anyone is interested, I am writing two technical reports on the subject.
The first one, a short report on the subject of a better way to remove
magnetometer offsets, is finished. Here is a
link<http://gentlenav.googlecode.com/files/MagnetometerOffsetNullingRevisi...>
.

Tomorrow I will start the second, longer one, on the subject of
automatically adjusting for magnetometer misalignment.

Best regards,
Bill


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marcus Fahlén  
View profile  
 More options Oct 14 2011, 7:32 pm
From: Marcus Fahlén <marcus.fah...@gmail.com>
Date: Sat, 15 Oct 2011 01:32:11 +0200
Local: Fri, Oct 14 2011 7:32 pm
Subject: SV: Re: automatic inflight magnetometer alignment

Hi Bill.

Long time, no type.  :-)

I will read your paper with great interest. Looking forward to take part of your outstanding creativity!

Just a pity you aren't that interested in helicopters  ;-)

Soon it's full winter here and I will then take up the part of my project where I left it last spring, when the "moblie GCS" was bought. It has taken all my "useable" time to get in shape. Today finally, it passed the certification inspection and is now fully road legal. Now it's time to continue with the flying part of the project. I'm REALLY looking forward to the UDB4 to get much needed I/O for my "needs".

I also have a little surprise coming that hopefully will be good news for parts of the UDB community   ;-)

Best regards and all my best wishes!

// Marc

Sent from a mobile device with a development Linux / "Android" kernel.

----- Opprinnelig melding -----
Fra: William Premerlani <wpremerl...@gmail.com>
Sendt: 15. oktober 2011 00:59
Til: uavdevboard@googlegroups.com
Emne: Re: automatic inflight magnetometer alignment

Hi Morli,

Thanks. This time I became obsessed, and spent most of 3 weeks thinking about magnetometer alignment, and coming up with better and better ideas. Most of the creative thinking was done while I was bicycling.

If anyone is interested, I am writing two technical reports on the subject. The first one, a short report on the subject of a better way to remove magnetometer offsets, is finished. Here is a link.

Tomorrow I will start the second, longer one, on the subject of automatically adjusting for magnetometer misalignment.

Best regards,
Bill

On Fri, Oct 14, 2011 at 2:29 PM, Murali- VU3MUV <vu3...@gmail.com> wrote:

thanks Billu Bhaiya,
Yes we are all having fun , a ton of it is just because of you as always ( other ton/s are because of the team as we know).  I can only imagine like most of us as to how many hours of mathematics/brain storming goes into these improvements.I only wish I can understand it. I am waiting for right tide to wash me into  right current sooner or later. Once again wishing every one best and happy Indian Depawali ( a celebration with/ of fire crackers and lights). It is either magnetometer or UDB4 for me this this festive season :))))

kind regards
Morli


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
William Premerlani  
View profile  
 More options Oct 14 2011, 8:00 pm
From: William Premerlani <wpremerl...@gmail.com>
Date: Fri, 14 Oct 2011 20:00:14 -0400
Local: Fri, Oct 14 2011 8:00 pm
Subject: Re: Re: automatic inflight magnetometer alignment

Hi Marcus,

Good to hear from you, and good luck to you in your endeavors...

I have not forgotten about helicopters, its just that I get so easily
distracted with other things.

I have built my own quad as a stepping stone to helis. Its flying quite
nicely in stabilized mode, but its been on the "back burner" for a while. I
have one more research topic to look into before getting back to it.

The nice thing is I can always fly the quad in my garage, and even in the
wintertime on most days I can fly it in my driveway, so its going to be my
winter project.

Best regards,
Bill

On Fri, Oct 14, 2011 at 7:32 PM, Marcus Fahlén <marcus.fah...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul Bizard  
View profile  
 More options Oct 15 2011, 12:39 pm
From: Paul Bizard <bizard.p...@neuf.fr>
Date: Sat, 15 Oct 2011 09:39:48 -0700 (PDT)
Local: Sat, Oct 15 2011 12:39 pm
Subject: Re: automatic inflight magnetometer alignment
Congratulations Bill !

Paul


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Phil Giacalone  
View profile  
 More options Oct 15 2011, 11:07 pm
From: Phil Giacalone <scienceth...@gmail.com>
Date: Sat, 15 Oct 2011 20:07:14 -0700 (PDT)
Local: Sat, Oct 15 2011 11:07 pm
Subject: Re: automatic inflight magnetometer alignment
Congrats Bill on another fantastic feature addition. Your analysis,
design, math, and coding work never cease to amaze!

A little question... I'm wondering if an optional misalignment 'hint'
setting might be useful so that the algorithm might compensate more
quickly. This would be for cases in which the magnetometer is
intentionally misaligned (by say 180 degrees).

Thanks again for all the great work!

BTW, I just posted a video that shows the ailerons and elevator
control surfaces during an aggressive flight of my HawkSky. The flight
includes several steep rolling dives and barrel rolls. Recovery from
each maneuver is controlled entirely by the UDB, since I let go of the
controls at the end of each one. It's interesting to see how fast the
control surfaces respond and how quickly the plane recovers to stable
level flight.

http://www.youtube.com/watch?v=2YN8vXAU1AQ

Best regards,
Phil

On Oct 14, 7:37 am, William Premerlani <wpremerl...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
William Premerlani  
View profile  
 More options Oct 16 2011, 2:56 pm
From: William Premerlani <wpremerl...@gmail.com>
Date: Sun, 16 Oct 2011 14:56:05 -0400
Local: Sun, Oct 16 2011 2:56 pm
Subject: Re: automatic inflight magnetometer alignment

Team,

I thank you all so much for your comments, postings, congratulations,
suggestions, and participation. This community is a lot of fun for me.

Here is the report<http://gentlenav.googlecode.com/files/MagnetometerRealignment.pdf>on
the theory, implementation, and testing of magnetometer realignment.

Regarding Phil's suggestion of the possibility of providing a "hint" to the
algorithm, that would be rather easy to do, if there is any interest. It
basically boils down to whether or not MatrixPilot supports mounting
orientation options for the magnetometer. So far, I do not recall anyone
asking for any other mounting orientation other than the "standard" one,
with the component side of the board facing up, and the connection facing
forward. If anyone wants options for other orientations, please speak up.

Best regards,
Bill


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
William Premerlani  
View profile  
 More options Oct 16 2011, 6:03 pm
From: William Premerlani <wpremerl...@gmail.com>
Date: Sun, 16 Oct 2011 18:03:59 -0400
Local: Sun, Oct 16 2011 6:03 pm
Subject: Re: automatic inflight magnetometer alignment

Team,
Also, here is my posting on this
subject<http://www.diydrones.com/profiles/blogs/magnetometer-alignment>at
diydrones.
Best regards,
Bill

On Sun, Oct 16, 2011 at 2:56 PM, William Premerlani
<wpremerl...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
William Premerlani  
View profile  
 More options Oct 18 2011, 12:32 am
From: William Premerlani <wpremerl...@gmail.com>
Date: Tue, 18 Oct 2011 00:32:21 -0400
Local: Tues, Oct 18 2011 12:32 am
Subject: Re: automatic inflight magnetometer alignment

Team,

I have made another update to the magnetometer alignment software. I fixed a
bug that was in r1060. The latest version is now in r1062 of MatrixPilot,
trunk, use it instead of r1060 if you are using a magnetometer.

There will be another revision in probably a few days to support several
mounting orientations for the magnetometer.

Best regards,
Bill


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marcus Fahlén  
View profile  
 More options Oct 18 2011, 1:04 am
From: Marcus Fahlén <marcus.fah...@gmail.com>
Date: Tue, 18 Oct 2011 07:04:53 +0200
Local: Tues, Oct 18 2011 1:04 am
Subject: SV: Re: automatic inflight magnetometer alignment

I'm really looking forward to hook up my lab environment again! Now with a tested and working UDB...

The T3 competition provided me with both the MediaTek GPS and one magnetometer that isn't tested yet.

If I understood correctly the MediaTek is now fully supported and works well?

I have also bought a barometer chip from SparkFun that I will test together with the UDB and Dragon Labs OSD that is a really nice bit of PIC based hardware which will be loaded with UDB customized firmware in not too long... This will make it possible to use the UDB telemetry data for it's sensor input instead of needing a separate set of IMU and other sensors. Hopefully a feature that will benefit more of the members of our community.

Best wishes!

///Marc

----- Opprinnelig melding -----
Fra: William Premerlani <wpremerl...@gmail.com>
Sendt: 18. oktober 2011 06:32
Til: uavdevboard@googlegroups.com
Emne: Re: automatic inflight magnetometer alignment

Team,

I have made another update to the magnetometer alignment software. I fixed a bug that was in r1060. The latest version is now in r1062 of MatrixPilot, trunk, use it instead of r1060 if you are using a magnetometer.

There will be another revision in probably a few days to support several mounting orientations for the magnetometer.

Best regards,
Bill


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
William Premerlani  
View profile  
 More options Oct 19 2011, 7:36 pm
From: William Premerlani <wpremerl...@gmail.com>
Date: Wed, 19 Oct 2011 19:36:28 -0400
Local: Wed, Oct 19 2011 7:36 pm
Subject: Re: automatic inflight magnetometer alignment

Team,

I have added four options for the mounting orientation of the magnetometer,
now available in r1067 MatrixPilot trunk.

The four options are the "flat" ones: forwards, backwards, inverted, and
flipped. Select the magnetometer, and the orientation, in the magnetometer
options file in the UDB headers subdirectory.

Align the magnetometer to the UDB to within 45 degrees of the target
orientation.

Best regards,
Bill


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Phil Giacalone  
View profile  
 More options Oct 20 2011, 9:43 pm
From: Phil Giacalone <scienceth...@gmail.com>
Date: Thu, 20 Oct 2011 18:43:26 -0700 (PDT)
Local: Thurs, Oct 20 2011 9:43 pm
Subject: Re: automatic inflight magnetometer alignment
Thank you, Bill. That was fast.

Best regards,
Phil

On Oct 19, 4:36 pm, William Premerlani <wpremerl...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »