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
  #21 (permalink)  
Old 11-07-2008, 01:00 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

You will have to ask Erel that, it's not up to me! Anyway the code doesn't exist yet.
Reply With Quote
  #22 (permalink)  
Old 11-07-2008, 03:48 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

The GPSDriver library does support external GPS devices.
You need to first set the intermediate driver to use the external GPS serial port.
On most devices you can set it under Settings - External GPS.
You can also use the attached Settings programs.
Attached Files
File Type: zip GPSSettings.zip (13.8 KB, 153 views)
__________________
Basic4android documentation
Reply With Quote
  #23 (permalink)  
Old 11-07-2008, 04:12 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 Erel View Post
The GPSDriver library does support external GPS devices
That's good news as I've obviously totally misunderstood what the "External GPS Settings" do and do you know what, I've re-read the help (what little there is!) and still don't really understand it.
Reply With Quote
  #24 (permalink)  
Old 11-07-2008, 04:22 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

There is no real difference between internal and external devices.
The Settings program tells the GPS intermediate driver which port it should open to connect to the GPS.
__________________
Basic4android documentation
Reply With Quote
  #25 (permalink)  
Old 11-07-2008, 04:36 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

Presumably there is something magic about the "none" setting on the External GPS Settings Hardware tab that actually connects the internal GPS to the Intermediate Driver - why can't it say something sensible like "internal"
Reply With Quote
  #26 (permalink)  
Old 11-09-2008, 11:38 AM
Knows the basics
 
Join Date: Apr 2007
Location: Steinheim, Germany
Posts: 91
Default

Hi,
tested the new GPSDriver on my HTC Cruise 3650 WM6.0 Pro and it works good. But when I try to compile the complete demo for my device an error occurs in line 45:
Code:
UTM() = converter.WGS84LatLonToUTM(gps.Latitude,gps.Longitude)
The altitude results are strange too. The sea level altitude is exactly the ellipsoid altitude and the ellipsoid altitude is not displayed. I think this is because off not all GPS chipsets support calculation of MSL (MSL = ellipsoid altitude - geoids separation). The values of the geoids separation are normally stored in a database and this database is missing on some receivers. To make the confusion complete do not all receivers deliver the same NMEA 0183:
Fortuna Clip - On
$GPGGA,161650.417,4841.7902,N,01004.0220,E,2,05,2. 0,578.5,M,48.0,M,2.0,0000*70
578.5 = ellipsoid altitude (MSL = 530.5)
Data Logger i - 747
$GPGGA,080026.000,4841.7900,N,01004.0198,E,1,9,0.9 6,532,5,M,48.0,M,,*5E
532.5 = MSL
The correct MSL is 532 m. The HTC delivers 584 m which is a "good" ellipsoid altitude. What can we do?
Attached Images
File Type: jpg error.JPG (14.3 KB, 14 views)
__________________
Thanks for all
wolfgang
___________________
Desktop: Dual Core 3.0 GHz, Win7
Device: IPAQ 3970 WM 2003, Asus 632N WM5, HTC 3650 Cruise
GPS: iblue 747
Reply With Quote
  #27 (permalink)  
Old 11-09-2008, 05:21 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

How did you declared UTM() ?
The altitude values are parsed from the NMEA strings by the GPS intermediate drive so there is no more information than what you see.
__________________
Basic4android documentation
Reply With Quote
  #28 (permalink)  
Old 11-09-2008, 06:04 PM
Knows the basics
 
Join Date: Apr 2007
Location: Steinheim, Germany
Posts: 91
Default

Quote:
Originally Posted by Erel View Post
How did you declared UTM() ?
It is exactly your demofile "GPSDriverDemo". I changed nothing.

Code:
Sub Globals
    
Dim Type (xZone, X, yZone, Y) UTM As double
End Sub
__________________
Thanks for all
wolfgang
___________________
Desktop: Dual Core 3.0 GHz, Win7
Device: IPAQ 3970 WM 2003, Asus 632N WM5, HTC 3650 Cruise
GPS: iblue 747
Reply With Quote
  #29 (permalink)  
Old 11-09-2008, 06:12 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

It compiles fine here. Please try to download the zip file again and copy GPSDriver.cs to Basic4ppc libraries folder.
__________________
Basic4android documentation
Reply With Quote
  #30 (permalink)  
Old 11-10-2008, 11:36 PM
Junior Member
 
Join Date: Nov 2007
Posts: 18
Default

What's the use of the Age parameter in the GetGPSData method?
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:35 AM.


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