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

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Share Your Creations > Open Source Projects
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Open Source Projects The place to discuss Basic4ppc open source applications.

GPS4PPC v2.0

Reply
 
LinkBack Thread Tools Display Modes
  #21 (permalink)  
Old 05-28-2010, 09:14 AM
Basic4ppc Expert
 
Join Date: May 2008
Location: Berkshire, UK
Posts: 762
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by Erel View Post
There are places that use the format dd:mm:dd, which is similar to dd:mm:ss just that the last two digits are out of a hundred and not sixty.
I understand about the hundredths of a minute; that is how nautical charts are marked so how locations would be entered into the device. It is just the use of ":" where a decimal point should be that is strange and not conventional.

Quote:
Originally Posted by Erel View Post
The '.' key changes to ':' depending on the format you choose.
I hadn't noticed that; smart idea. But I don't think that "dd:mm:dd" unconventional format is justified by a smart programming idea!

Another aspect of the soft key-pad arises from the [North|South][East|West] quadrant format. This may be convenient for areas that are entirely in one quadrant, but for areas that straddle the prime meridian (UK, France, Spain etc) or the equator it is not so handy. Then it is more convenient to use "+" and "-" lat/long and the key pad has no minus sign.

(Also I am importing locations from GPX and KML files, and there the convention is for negative lat/long for S and W respectively.)

MIke.
Reply With Quote
  #22 (permalink)  
Old 06-01-2010, 02:20 PM
Basic4ppc Veteran
 
Join Date: Jan 2009
Location: Bayern, Germany
Posts: 489
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hello

I want to move the main Navigation Compass.

Q: how can I move the main Nav Compass down a little bit on the frm ?

Thank you for helping.

Best Regards.
William
Reply With Quote
  #23 (permalink)  
Old 06-01-2010, 02:30 PM
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

In the GPS module, with the first 2 variables the center of the compass is set.
Code:
<font face="Courier New"><font size="2"><font color="#0000ff"><font face="Courier New"><font size="2"><font color="#0000ff"><font face="Courier New"><font size="2"><font color="#0000ff">Sub </font></font></font></font></font></font></font></font></font><font face="Courier New"><font size="2"><font face="Courier New"><font size="2">Globals</font></font>
<font size=
"2"><font face="Courier New"> compCX = </font></font></font></font><font face="Courier New"><font size="2"><font color="#800080"><font face="Courier New"><font size="2"><font color="#800080"><font face="Courier New"><font size="2"><font color="#800080">71</font></font></font></font></font></font></font></font></font><font face="Courier New"><font size="2"><font color="#008000"><font face="Courier New"><font size="2"><font color="#008000"><font face="Courier New"><font size="2"><font color="#008000">' Pointer center x</font></font></font>
</font></font></font></font></font></font><font face="Courier New"><font size="2"><font face="Courier New"><font size="2"> compCY = </font></font></font></font><font face="Courier New"><font size="2"><font color="#800080"><font face="Courier New"><font size="2"><font color="#800080"><font face="Courier New"><font size="2"><font color="#800080">195</font></font></font></font></font></font></font></font></font><font face="Courier New"><font size="2"><font color="#008000"><font face="Courier New"><font size="2"><font color="#008000"><font face="Courier New"><font size="2"><font color="#008000">' Pointer center y</font></font></font></font></font></font></font></font></font>
Best regards.
__________________
Klaus
Switzerland
Reply With Quote
  #24 (permalink)  
Old 06-01-2010, 02:43 PM
Basic4ppc Veteran
 
Join Date: Jan 2009
Location: Bayern, Germany
Posts: 489
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hello Klaus.

Thank you SIR, for the quick help. Is needed !
Q: when i set on the HTC Comm Port 4, nothing happens. But using Comm 8 it works. ?

PS. Did you check GPS4PPCx2-V2 ? It works with the Comm Port ! Desktop and Device, included.

Take care.
William

Last edited by wm.chatman : 06-01-2010 at 02:49 PM.
Reply With Quote
  #25 (permalink)  
Old 06-01-2010, 02:52 PM
Basic4ppc Veteran
 
Join Date: Jan 2009
Location: Bayern, Germany
Posts: 489
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by klaus View Post
In the GPS module, with the first 2 variables the center of the compass is set.
Code:
<font face="Courier New"><font size="2"><font color="#0000ff"><font face="Courier New"><font size="2"><font color="#0000ff"><font face="Courier New"><font size="2"><font color="#0000ff">Sub </font></font></font></font></font></font></font></font></font><font face="Courier New"><font size="2"><font face="Courier New"><font size="2">Globals</font></font>
<font size=
"2"><font face="Courier New"> compCX = </font></font></font></font><font face="Courier New"><font size="2"><font color="#800080"><font face="Courier New"><font size="2"><font color="#800080"><font face="Courier New"><font size="2"><font color="#800080">71</font></font></font></font></font></font></font></font></font><font face="Courier New"><font size="2"><font color="#008000"><font face="Courier New"><font size="2"><font color="#008000"><font face="Courier New"><font size="2"><font color="#008000">' Pointer center x</font></font></font>
</font></font></font></font></font></font><font face="Courier New"><font size="2"><font face="Courier New"><font size="2"> compCY = </font></font></font></font><font face="Courier New"><font size="2"><font color="#800080"><font face="Courier New"><font size="2"><font color="#800080"><font face="Courier New"><font size="2"><font color="#800080">195</font></font></font></font></font></font></font></font></font><font face="Courier New"><font size="2"><font color="#008000"><font face="Courier New"><font size="2"><font color="#008000"><font face="Courier New"><font size="2"><font color="#008000">' Pointer center y</font></font></font></font></font></font></font></font></font>
Best regards.
Yes Klaus es funzt. how dumm can i be and or still will be getting. ha, ha, ha. Thank you !
Reply With Quote
  #26 (permalink)  
Old 07-13-2010, 11:43 AM
Knows the basics
 
Join Date: Jul 2010
Location: St.Petersburg
Posts: 59
Default

Hello. It doesnt work here.What could I be missing?Any manual for dummies?

Present position(0 satelites)
I click the Connect button but nothing happens

Reply With Quote
  #27 (permalink)  
Old 07-13-2010, 01:06 PM
Knows the basics
 
Join Date: Jul 2010
Location: St.Petersburg
Posts: 59
Default

Quote:
It runs properly on the desktop, but without the GPS functionality
How do I run it on the desktop?

On the device GPS disconected after a couple of seconds(.CAB file)

Reply With Quote
  #28 (permalink)  
Old 07-13-2010, 03:27 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

You can switch to agraham's GPSSerial library (which is available for licensed users). This library offers the same functionality of GPSDriver on the desktop.
__________________
Basic4android documentation
Reply With Quote
  #29 (permalink)  
Old 07-13-2010, 03:54 PM
Knows the basics
 
Join Date: Jul 2010
Location: St.Petersburg
Posts: 59
Default

Quote:
You can switch to agraham's GPSSerial library (which is available for licensed users). This library offers the same functionality of GPSDriver on the desktop.
I have read about it above.
I cannot understand why it doesn't work on my device(RoverPC,WM6) neigthre
newer version GPS4ppc nor older .cab
I get a msgbox "GPS connected" and in 2 seconds "GPS disconected"
Reply With Quote
  #30 (permalink)  
Old 08-07-2010, 11:04 AM
Basic4ppc Expert
 
Join Date: May 2008
Location: Berkshire, UK
Posts: 762
Awards Showcase
Beta Tester 
Total Awards: 1
Default

I have developed the attached program source from GPS4PPC, hopefully to be of use when yachting. Hence it deals with "waypoints" which are the basis of marine navigation.

This program will probably not be useful to anyone directly in this form. I am almost hoping this is the case since I would have to write a manual! However chunks of the code that deal with inputting and outputting KML and GPX data might be of use for cannibalisation.

Raster charts have limitations on such a small screen, and having little power to deal with multiple zoom levels, I chose to use vector outline “charts”. I can construct these from freely-available coastline data and they can be zoomed down to the level of line segments.

In the process I discovered that the UK Ordnance Survey make their road vector data, with a subset of road names, freely available too, and that a small adaptation of my program could draw roads instead of coastlines. It does not attempt to draw the road names. Instead, one road name can be picked (from an alphabetic list) and that road highlighted on the road map.

BTW The zoom is done via a rectangle drawn on the screen per http://www.basic4ppc.com/forum/quest...html#post34008. A new rectangle can be drawn on the zoomed screen and thus any number of successive zooms can be performed. When un-zooming, the previous rectangle is re-drawn and can be adjusted. The current location, by GPS, can be indicated at all zoom levels if wished. Tap-and-hold on the map will bring up an edit screen for creating a waypoint at that location. But I have not attempted, in my additions, to incorporate the ability to show coordinates in UTM grid and in alternative datums, that exists in the original program.

In line with the marine alignment of functionality I substituted GPS4PPC’s small compass-bearing pointer display with a large swinging compass card like that in a boat’s binnacle. Where the original compass display was shown is now a view of the satellite IDs in the sky, with colour-coded relative signal strengths.

Because yachts move so slowly, the speed values that a GPS shows are too variable to be directly useful. So I added a running-average feature using up to ten past values. This also feeds the display of “velocity made good” (VMG) towards the next waypoint.

I haven’t really solved the problem of how best to move between the various forms that can be shown, other than a few specific buttons (like the ones to switch between “waypoints” and “routes”). Maybe an extra menu would be appropriate.

The three GPS*.sbp files differ only in the way that they use the GPS DLLs (see http://www.basic4ppc.com/forum/addit...html#post34993). They all use the same modules in the same way. Those modules do the real work.

If anyone wants to know how to get the coastlines or UK roads into GPX/KML (using 3rd-party programs) then I can explain that too.

Regards, Mike.

Edit: see http://www.basic4ppc.com/forum/open-...html#post36754 for an Auto-scale executable CAB file of this program.
Attached Files
File Type: zip GPS4PPC-MJC.zip (122.4 KB, 45 views)

Last edited by mjcoon : 08-17-2010 at 11:49 PM. Reason: Executable (.cab) added later in thread
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
Gps4ppc Erel Open Source Projects 67 02-23-2010 03:59 PM
Using Erels Gps4ppc Open Source App., I would like to Integrate this... wm.chatman Questions (Windows Mobile) 21 03-25-2009 07:12 PM
GPS4PPC in opticomp Put Claude Questions (Windows Mobile) 2 01-07-2008 07:51 PM


All times are GMT. The time now is 12:37 AM.


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