Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Code Samples & Tips > Additional Libraries
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Additional Libraries Users contributed libraries.
This sub-forum is only available to licensed users.

Nav library

Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 08-24-2010, 08:52 PM
Basic4ppc Expert
 
Join Date: May 2008
Location: Berkshire, UK
Posts: 810
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by derez View Post
I shall try to work on the fortran version, it is more understandable to me.
It will take time.
Thanks David. I've been looking at the various versions too. It does seem rather complex, and I don't think that any of the calculations other than declination/variation would be of interest...

Mike.
Reply With Quote
  #12 (permalink)  
Old 08-25-2010, 11:02 AM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 978
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

Version 1.3 includes MagneticData class, provides magnetic declination (variation), Inclination and Grid-Variation for point defined by its coordinates.

It is based on an algorithm found here World Magnetic Model - Software Download
thanks to mjcoon !
Please read the notes there about the accuracies. Remember that the algorithm does not consider local effects of the materials in the ground, and this may cause a much larger difference than the accuracy.

The results are quite close to what this site computes: http://www.magnetic-declination.com/

The data file is valid until 2015.
__________________
David Erez
Ramat Hasharon, Israel

Last edited by derez : 08-25-2010 at 11:09 AM.
Reply With Quote
  #13 (permalink)  
Old 08-25-2010, 11:36 AM
Basic4ppc Expert
 
Join Date: May 2008
Location: Berkshire, UK
Posts: 810
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by derez View Post
Version 1.3 includes MagneticData class, provides magnetic declination (variation), Inclination and Grid-Variation for point defined by its coordinates.
...
The results are quite close to what this site computes: Magnetic Declination
Terrific, thanks David. I confirm that I get the same value for declination for my location as I get from the various versions at or downloaded from the NOAA web site.

I guess since the data needs to be refreshed ever five years (!) it is better to keep it separate rather than incorporating it inside the DLL as a resource.

Now I can (for the moment) stop trying to dredge up what I used to know about C++ and try incorporating what you have done into (my version of) GPS4PPC.

BTW although your latest nav.chm does include the new magnetic value methods, the overview section misses out mention of version 1.3.

Mike.
Reply With Quote
  #14 (permalink)  
Old 08-25-2010, 01:27 PM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 978
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

Thanks for the reminder, corrected.
__________________
David Erez
Ramat Hasharon, Israel

Last edited by derez : 08-25-2010 at 01:29 PM.
Reply With Quote
  #15 (permalink)  
Old 08-25-2010, 07:58 PM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 978
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

I corrected a bug in the MagneticData, ver 1.31
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
  #16 (permalink)  
Old 08-26-2010, 02:25 PM
Basic4ppc Expert
 
Join Date: May 2008
Location: Berkshire, UK
Posts: 810
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hi David, I've spotted an ommission from the suite of test code that you included: trying to load Geo_Mapcal2.sbp (just to see what it does!) I get a message that module mAbout.bas is missing. No doubt it isn't crucial unless you click the "About" menu item...

Mike.
Reply With Quote
  #17 (permalink)  
Old 08-26-2010, 04:23 PM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 978
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

Thank you, I replaced the program with a new one which use about.dll instead of the module (included).
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Door library (Beta) - Special library Erel Official Updates 60 01-13-2011 11:23 AM
Merging Outlook library and Phone library Erel Official Updates 11 09-15-2010 09:22 AM
PhoneticAlgorithms Library (ex-StringComparison Library) moster67 Additional Libraries 10 11-11-2008 07:46 PM


All times are GMT. The time now is 07:08 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0