[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4789: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3916)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4791: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3916)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4792: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3916)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4793: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3916)
AutoQuad Forum • View topic - Calculation of Inclination in AQ-Groundcontrol
Page 1 of 1

Calculation of Inclination in AQ-Groundcontrol

PostPosted: Mon Jul 23, 2012 7:22 pm
by axelnied
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.

Re: Calculation of Inclination in AQ-Groundcontrol

PostPosted: Mon Jul 23, 2012 10:56 pm
by axelnied

Re: Calculation of Inclination in AQ-Groundcontrol

PostPosted: Tue Jul 24, 2012 11:34 am
by sandmen

Re: Calculation of Inclination in AQ-Groundcontrol

PostPosted: Tue Jul 24, 2012 1:06 pm
by after.burner
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)

Re: Calculation of Inclination in AQ-Groundcontrol

PostPosted: Tue Jul 24, 2012 5:34 pm
by axelnied
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...

Re: Calculation of Inclination in AQ-Groundcontrol

PostPosted: Tue Jul 24, 2012 7:29 pm
by kinderkram
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?

Re: Calculation of Inclination in AQ-Groundcontrol

PostPosted: Tue Jul 24, 2012 7:54 pm
by axelnied

Re: Calculation of Inclination in AQ-Groundcontrol

PostPosted: Wed Jul 25, 2012 6:00 am
by joebar.rc

Re: Calculation of Inclination in AQ-Groundcontrol

PostPosted: Tue Aug 07, 2012 3:46 pm
by sandmen
On the next version, I have fixed the bug.

Re: Calculation of Inclination in AQ-Groundcontrol

PostPosted: Tue Aug 07, 2012 4:59 pm
by axelnied