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
  #1 (permalink)  
Old 03-04-2010, 07:22 PM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 918
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default Nav library

Nav is a library with some algorithms for use in a navigation application.

The names of the main methods are:
  • GeoDistanceBearing
  • GeoDistance
  • UTMDistanceBearing
  • FlatArea
  • FlatArea2
  • SphericalArea
  • SphericalArea2
  • GeoRouteLength
  • GeoRouteLength2
  • UTMRouteLength
  • UTMRouteLength2

Tha attached file includes Help, example program and the cs file.

Edit: version 1.1 includes the function Atan2 which helps to define azimuth (the same as Atan but for the whole circle).

Edit: version 1.2 includes Map method for getting the x-y coordinates for image map, based on four points data. enables the use of large maps which are not rectangular , or even rotated.

Edit: Version 1.31 includes MagneticData class, provides magnetic declination (variation), Inclination and Grid-Variation for point defined by its coordinates.
Attached Images
File Type: jpg kineret2.jpg (73.2 KB, 103 views)
Attached Files
File Type: zip NAV1.3.zip (94.0 KB, 81 views)
__________________
David Erez
Ramat Hasharon, Israel

Last edited by derez : 08-26-2010 at 05:28 PM.
Reply With Quote
  #2 (permalink)  
Old 03-04-2010, 09:25 PM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 918
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

Updated to ver. 1.1
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
  #3 (permalink)  
Old 03-06-2010, 07:10 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Thanks. I'm sure that it will be extremely useful.
__________________
Basic4android documentation
Reply With Quote
  #4 (permalink)  
Old 04-03-2010, 09:02 AM
Newbie
 
Join Date: Jan 2010
Posts: 5
Default

Thanks for the lib,

looks vy good. I'm new in this forum and to Basic4ppc. Got my licence a few days ago.
Back to Basic after more than 15 years of teaching C++.
Reply With Quote
  #5 (permalink)  
Old 07-08-2010, 01:30 PM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 918
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

The library is updated to ver 1.2, with the addition of Map method. It enables the use of large maps in navigation programs.
The map is calibrated by dual (lat-long + x-y ) coordinates of four points, and returns the x - y of a input lat-long, the local rotation from north, and the horizontal and vertical ratios of the map (map/real).

I'll be glad to further explain if this + the help isn't clear enough.
__________________
David Erez
Ramat Hasharon, Israel

Last edited by derez : 07-08-2010 at 01:34 PM.
Reply With Quote
  #6 (permalink)  
Old 07-09-2010, 08:08 AM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 918
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default Map calibration program

Attached to the first post - a desktop program to help in performing the four-point calibration of a map, for use with Map method.
Operation is simple:
1.prepare the map as a photo
2.run the program
3.load the map
4.go to "map" form and mark the four points, moving by mouse clicks and marking by the buttons there.
5.return to "input" form and fill the lat-long coordinates for the points (Google Earth may help here...)
6.check with another point coordinates to see if it appears in the map form in the center.
7.save a text file for use in the navigation program.
__________________
David Erez
Ramat Hasharon, Israel

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

I have a suggestion for what I think is an appropriate extension: deriving magnetic variation for any point on Earth. The C code is available free at World Magnetic Model - Software Download.

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

It looks as too much work to translate it to the library. sorry.
If anyone would do the translation I'll be glad to include it in Nav.
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
  #9 (permalink)  
Old 08-22-2010, 09:27 AM
Basic4ppc Expert
 
Join Date: May 2008
Location: Berkshire, UK
Posts: 762
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by derez View Post
It looks as too much work to translate it to the library. sorry.
Sorry to hear that. Is the problem that plain "C" (as the NOAA code is) is not compatible with a C# environment (as it is with C++)?

(I was able to build and run the older 2005-era code under Visual C++ 2005 Express Edition.)

Mike.
Reply With Quote
  #10 (permalink)  
Old 08-24-2010, 07:56 PM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 918
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

I shall try to work on the fortran version, it is more understandable to me.
It will take time.
__________________
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 12:23 PM
Merging Outlook library and Phone library Erel Official Updates 11 09-15-2010 10:22 AM
PhoneticAlgorithms Library (ex-StringComparison Library) moster67 Additional Libraries 10 11-11-2008 08:46 PM


All times are GMT. The time now is 09:50 PM.


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