Calculation of Inclination in AQ-Groundcontrol

Ground Stations and utilities for Windows, Linux, Android, & others

Calculation of Inclination in AQ-Groundcontrol

Postby axelnied » Mon Jul 23, 2012 7:22 pm

Team,

referring to:
http://autoquad.org/wiki/wiki/autoquad- ... culations/

I think I may have discovered a small error...
Is it possible that the Groundcontrol actually operates with degrees and minutes, when using the tool to create the "#define IMU_MAG_INCL" statement?

In the example displayed on the Wiki, there are shown three different numbers shown (for Den Haag Zuit - Hollland):
67deg 6minutes (via http://magnetic-declination.com/)
-67.09 (as shown entry into groundcontrol tool)
-67.15 (in the resulting "#define" statement)

Why are there three numbers? When using the online converter tool (http://www.onlineconversion.com/map_decimaldegrees.htm) 67deg 6min results in 67.1 deg decimal, which is what should be in the "#define" statement, right? When entering 67.06 (as deg.min) into the groundcontrol tool I get exactly 67.1deg decimal. So there may be no need to use the "converter" tool. Just enter deg.min...!?

Could someone please sanity check this!?
The difference is not huge and might correspond to the error when driving to a nearby flying field.
axelnied
 
Posts: 262
Joined: Wed Jul 04, 2012 5:51 pm
Location: San Diego, CA, USA

Re: Calculation of Inclination in AQ-Groundcontrol

Postby axelnied » Mon Jul 23, 2012 10:56 pm

Here is an example to clarify what I am trying to point out.
If I enter -60.61 into the tool (QGroundControl, Tab "Generate Parameter", upper right corner), press the Calc button, the generated #define reads

#define IMU_MAG_INCL -60.102


Even without knowing too much about math, I can tell that this is not correct...

Inclination Error.JPG
Degree/Minutes vs Decimals Inclination
Inclination Error.JPG (24.01 KiB) Viewed 7184 times
axelnied
 
Posts: 262
Joined: Wed Jul 04, 2012 5:51 pm
Location: San Diego, CA, USA

Re: Calculation of Inclination in AQ-Groundcontrol

Postby sandmen » Tue Jul 24, 2012 11:34 am

axelnied wrote:Team,

referring to:
http://autoquad.org/wiki/wiki/autoquad- ... culations/

I think I may have discovered a small error...
Is it possible that the Groundcontrol actually operates with degrees and minutes, when using the tool to create the "#define IMU_MAG_INCL" statement?

In the example displayed on the Wiki, there are shown three different numbers shown (for Den Haag Zuit - Hollland):
67deg 6minutes (via http://magnetic-declination.com/)
-67.09 (as shown entry into groundcontrol tool)
-67.15 (in the resulting "#define" statement)

Why are there three numbers? When using the online converter tool (http://www.onlineconversion.com/map_decimaldegrees.htm) 67deg 6min results in 67.1 deg decimal, which is what should be in the "#define" statement, right? When entering 67.06 (as deg.min) into the groundcontrol tool I get exactly 67.1deg decimal. So there may be no need to use the "converter" tool. Just enter deg.min...!?

Could someone please sanity check this!?
The difference is not huge and might correspond to the error when driving to a nearby flying field.


There is a small failure in the wiki, of course you have to insert -76.06 for Den Haag.
You have to insert, -67.06 and it's calculated -67.10.
Hmm, do you have a location with XX.61 (degree/minutes)?
sandmen
 
Posts: 997
Joined: Fri Jun 22, 2012 7:25 am

Re: Calculation of Inclination in AQ-Groundcontrol

Postby after.burner » Tue Jul 24, 2012 1:06 pm

Oh, I also fell for this and entered the wrong value (converter deg/minutes to decimal by hand and entered the resulting value in the field and converted it again by pressing calculate)

Maybe you can provide a real example in the Wiki with Screenshot of http://magnetic-declination.com/ and the right values into QGroundcontrol? (right now the screenshots seem to be unrelated). The non-obvious thing is that you have to enter output like "67deg 6minutes" as "67.06" and press calc -> so you have to enter the minute in decimal form without converting to decimal and then have QGroundcontrol convert it.

(The best solution would be to allow simple copy&paste of inclination and declination lines straight from http://magnetic-declination.com/ into the right fields in QGroundcontrol)
after.burner
 
Posts: 20
Joined: Sat Jul 21, 2012 8:41 pm

Re: Calculation of Inclination in AQ-Groundcontrol

Postby axelnied » Tue Jul 24, 2012 5:34 pm

Since you guys confirmed it, I think the Wiki should be updated...
As far as I can see it there are TWO methods to create the necessary "#define IMU_MAG_INCL" statement.

Method 1: Use the AQ-Groundcontrol tool
- get the inclination for your location from http://magnetic-declination.com/
- enter the inclination in the following format into the AQ-Groundcontrol tool "dd.mm", where d=degrees, m=minutes, use leading zeros, example 6 = 06)
- press "Calc"
- copy and paste the resulting "#define IMU_MAG_INCL" statement into "All Generated Parameter"

Method 2: Manually create the #define statement with onlineconversion.com
- get the inclination for your location from http://magnetic-declination.com/
- enter the inclination in the following format into http://www.onlineconversion.com/map_decimaldegrees.htm
"d m", where d=degrees, m=minutes, "space" in between, no leading zeros necessary)
- enter the resulting decimal inclination behind "#define IMU_MAG_INCL" and paste the entire string into "All Generated Parameter"

Good Luck to all of us...
axelnied
 
Posts: 262
Joined: Wed Jul 04, 2012 5:51 pm
Location: San Diego, CA, USA

Re: Calculation of Inclination in AQ-Groundcontrol

Postby kinderkram » Tue Jul 24, 2012 7:29 pm

Schankedön! 8-)

Thx Axel - since I'm too dumb for these kind of maths I'll wait for Bill to confirm it and then push it to the Wiki, ok?
kinderkram
 
Posts: 2911
Joined: Fri Jun 22, 2012 7:47 am

Re: Calculation of Inclination in AQ-Groundcontrol

Postby axelnied » Tue Jul 24, 2012 7:54 pm

kinderkram wrote:Schankedön! 8-)

Thx Axel - since I'm too dumb for these kind of maths I'll wait for Bill to confirm it and then push it to the Wiki, ok?


That would be lovely...
axelnied
 
Posts: 262
Joined: Wed Jul 04, 2012 5:51 pm
Location: San Diego, CA, USA

Re: Calculation of Inclination in AQ-Groundcontrol

Postby joebar.rc » Wed Jul 25, 2012 6:00 am

axelnied wrote:Since you guys confirmed it, I think the Wiki should be updated...
As far as I can see it there are TWO methods to create the necessary "#define IMU_MAG_INCL" statement.

Method 1: Use the AQ-Groundcontrol tool
- get the inclination for your location from http://magnetic-declination.com/
- enter the inclination in the following format into the AQ-Groundcontrol tool "dd.mm", where d=degrees, m=minutes, use leading zeros, example 6 = 06)
- press "Calc"
- copy and paste the resulting "#define IMU_MAG_INCL" statement into "All Generated Parameter"
.


Sorry guys, didn't check the thread for a couple of days.
Ok, some confusion and I understand why :). In the wiki examples I used an older GCS and when you call the magnetic inclination page it is actually the location of your provider. I live 10Km further hence the difference in the screenshots. I corrected that by hand but forget to use that in the screenshots..

Ok, I corrected that. The screenshots and text is now consistant. The only part I cannot fully document right now is uploading the declination param (0.5 in the example) because I don't have the AutoQuad with me on holiday (my bad, next year bigger car :) ).
Thanks Axel for bringing this to attention...

Menno
joebar.rc
 
Posts: 1084
Joined: Fri Jun 22, 2012 8:59 am
Location: The netherlands

Re: Calculation of Inclination in AQ-Groundcontrol

Postby sandmen » Tue Aug 07, 2012 3:46 pm

On the next version, I have fixed the bug.
sandmen
 
Posts: 997
Joined: Fri Jun 22, 2012 7:25 am

Re: Calculation of Inclination in AQ-Groundcontrol

Postby axelnied » Tue Aug 07, 2012 4:59 pm

sandmen wrote:On the next version, I have fixed the bug.


Sandman,

Thanks! Maybe instead of
Magnetic Declination: format: -60.11


you could spell out the actual format, i.e. "dd.mm", where d=degrees, m=minutes?
Magnetic Declination: Example: -60.11 (format: =dd.mm)
axelnied
 
Posts: 262
Joined: Wed Jul 04, 2012 5:51 pm
Location: San Diego, CA, USA


Return to AQ Software

Who is online

Users browsing this forum: No registered users and 4 guests

cron