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 > Official Updates
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Official Updates Updates to official libraries could be found here.
This forum is only available to licensed users.

New GPSDriver library

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-04-2008, 08:37 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Lightbulb New GPSDriver library

The GPSDriver uses Microsoft GPS Intermediate Driver to receive GPS data.
This library can work with both internal and external GPS devices.
Using this library is simpler than with the GPS library as there is no need to manually connect to a serial port.
This library should be added to both the desktop and the device, however the functionality is not available on the desktop.
Requirements are Windows Mobile 5.0 or newer devices installed with .Net Compact Framework 2.0.

I want to thank Agraham for writing the first version of this library.

Setup instructions:
- Unzip the attached file.
- Copy GPSDriver.cs, GPSDriver.dll and GPSDriver.chm to Basic4ppc libraries folder:
C:\Program Files\Anywhere Software\Basic4ppc Desktop\Libraries

Edit: V1.11 is attached. This version fixes a bug in the GPSConverter object related to conversions of negative longitude coordinates.

An example is also included in the zip file.
The online manual is available here: GPSDriver

See this post about external GPS devices: http://www.basic4ppc.com/forum/offic...html#post18443
Attached Files
File Type: zip GPSDriver.zip (31.4 KB, 577 views)
Reply With Quote
  #2 (permalink)  
Old 11-05-2008, 09:42 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

GPSDriver.chm doesn't work on my machines, either Vista or XP. I just get "The address is not valid" errors Any ideas?
Reply With Quote
  #3 (permalink)  
Old 11-05-2008, 09:52 AM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 3,827
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

On my XP machine it works !?
__________________
Klaus
Switzerland
Reply With Quote
  #4 (permalink)  
Old 11-05-2008, 10:38 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Found it! - A security issue I've not come across before I keep the settings on my machines quite tight.

Quote:
Right-click the CHM file, and then click Properties.
Click Unblock.
Double-click the .chm file to open the file.
If anyone with Vista has this problem note that you can't unblock it while it is in the "Libraries" folder owing to Vista security. You will need to copy it to a folder outside "Program Files", unblock it, delete the one in "Libraries" and copy the unblocked one back. At least that's what I had to do!

Last edited by agraham : 11-05-2008 at 10:48 AM.
Reply With Quote
  #5 (permalink)  
Old 11-05-2008, 12:27 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

A bug EllipsoidAltitude is checking the wrong flag for validity
Code:
public float EllipsoidAltitude
{ get { 
return SeaLevelAltitudeValid ? gpsdata.flAltitudeWRTEllipsoid : InvalidData; } }
And a comment.

There is inconsistent naming of "SatellitesInViewCount which is plural and SatelliteInUseCount which is singular.
Reply With Quote
  #6 (permalink)  
Old 11-05-2008, 12:34 PM
Basic4ppc Veteran
 
Join Date: Feb 2008
Location: Hilversum, The Netherlands
Posts: 295
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hi Erel, this is great news!!
thanks for this new lib (and you too Agraham )

Just tried your demo application, when I run it and click connect i get an error
Code:
An error occurred on sub main.displaygps

Line number : 
53

If Satellites.shouldCalculate Then Satellites.UpdateSatellites

Error description
Format 
exception
Continue?
If I click yes then the error pops up again, but If I click yes and click on satellites (menu item) quickly the table shows and gets updated
when I close the satellites form works like it should...

Reply With Quote
  #7 (permalink)  
Old 11-05-2008, 04:42 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Thank you guys. I've updated the library to version 1.01 with a fix to the validity check.
The demo program was updated and now Satellite.shouldCalculate is first initialized to false as required.
Reply With Quote
  #8 (permalink)  
Old 11-05-2008, 08:07 PM
taximania's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 585
Awards Showcase
Beta Tester 
Total Awards: 1
Default

I will try this whilst at work tomorrow, and post my findings later on
__________________
.
.
.
Don't ask, I'm fine, honest. !!
.
.
.
Just a little crazy at times



O2 XDA, GW Evo 2.1 UC WWE Rom, WM6.1
Radio Ver 03.34.90
With Basic4ppc V6.80


http://www.taximania.co.uk
Reply With Quote
  #9 (permalink)  
Old 11-05-2008, 08:44 PM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 918
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default altitude

Erel and Agraham
thanbks for this library, I'm already running my navigation program and it works nicely. The satellites code becomes very easy with the new structured array which includes the "Used".

Still I'm not sure that EllipsoidAltitude is doing what it should - I get the same altitude all the time (usually there are variations of few meters as the gps stabilizes).

Please explain the difference between the two types of altitudes. all altitude calculations are with reference to a specific Geoid which is defined by each country or for an area, or by using the general WGS84.(see attached list)
What does "sealevel" use ?
Attached Files
File Type: txt all_datum.txt (10.4 KB, 33 views)
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
  #10 (permalink)  
Old 11-05-2008, 09:59 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by derez View Post
Still I'm not sure that EllipsoidAltitude is doing what it should - I get the same altitude all the time (usually there are variations of few meters as the gps stabilizes).
As long as you have version 1.01 then Ellipsoid altitude does what I expect on my Diamond. It appears to return (correctly) the present altitude above the WGS84 ellipsoid which when corrected using the transformation equations and parameters specified by our national mapping agency (the Ordnance Survey) give a good match to my latitude, longitude and altitude on our national standard geoid (OSGB36/ODN) on which our UK maps are drawn.

I don't have the detailed knowledge to answer the rest of your query as I have only researched the WGS84 to UK standard transformation using the equation and data supplied by our Ordnance Survey.
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 01:00 AM.


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