Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: Working on a small GPS program

  1. #1
    Newbie
    Join Date
    Aug 2004
    Location
    Australia
    Posts
    27

    Working on a small GPS program

    I started this a few days ago when I got my mouse GPS, so its alittle incomplete, but it works. I live in australia so at the moment thats the only location it really works in (With small modifications it could work else where). I am just using some maps joined together from whereis.com.au

    The map is a .gif and I made it load using an ini file to setup 2 points of references.

    If there is some interest I could probably upload the source code. I built it using 2 basic classes, so the code could easily be put into another project as a basic guide. Its currently written in vb, but I was thinking of porting it to c++ some time.

    Here are some screenshots.

    In the car park at uni:


    Driving along the highway:


    Crossing the ever famous Nepean river:


    Cruising again:


    The "short cut" to uni... dont ask:


    It only has basic functionality, updates the map position according to the gps position, you can zoom in and out etc.

    The velocity speeds are very wrong, I was only playing around with some of that code. So I still got to fix that.

    Comments / suggestions?

  2. #2
    FLAC ppgt94's Avatar
    Join Date
    May 2001
    Location
    USA
    Posts
    1,352
    That's really awesome.

  3. #3
    Variable Bitrate danon's Avatar
    Join Date
    Oct 2003
    Location
    Queensland, Australia
    Posts
    370
    Quote Originally Posted by Hellcat
    I started this a few days ago when I got my mouse GPS, so its alittle incomplete, but it works. I live in australia so at the moment thats the only location it really works in (With small modifications it could work else where). I am just using some maps joined together from whereis.com.au

    The map is a .gif and I made it load using an ini file to setup 2 points of references.

    If there is some interest I could probably upload the source code. I built it using 2 basic classes, so the code could easily be put into another project as a basic guide. Its currently written in vb, but I was thinking of porting it to c++ some time.

    Here are some screenshots.

    ...Comments / suggestions?

    wow, it's been a long time since my last post!

    i reckon you'll gonna make a lot of aussies happy here (if not some)...

    there has been some discussions about gps apps from the distant past in this forum, let me give you those links:

    GPS software with directions - Australia

    and maybe:
    Australian (Melbourne area) map/software for GPS

    ..GPSS (the one i used) does exactly what you are trying to achive, plus some more. the problem with it is that "extra features", i mean in a carputer setup with a small screen, you will only need the very basic information such as the moving map, speed, long/lat, and some few, the rest of your attention should be on the road. plus GPSS talk too much, and interface is the worst i've ever seen (sorry i have to be honest) text info are too small.

    could i have the source code first before you port it to c++? if this can be integrated in mediacar, it's gonna be a killer app!

    very, very, very, good work mate.


    danon
    [....99.9%]
    [HW] 566eMHz/128mb/6gb, FlyVideo3k, RandMgps, M1-ATX, 7" Lilliput, VGA2AVadptrFor2ndVideo, 4CH/100rms, 10"Sub, 40AhDeepCycleTank
    [....99.8%]
    [SW] XP/MMC/FP:D3,FlyTV/AxifeFM,CarMM?
    [Working on] puttingBackEvrythg.

  4. #4
    FLAC djmickyg's Avatar
    Join Date
    Feb 2004
    Posts
    1,314
    nice work.. im an aussi too.

    can u put in a destination for it to guide u to?

  5. #5
    Newbie
    Join Date
    Aug 2004
    Location
    Australia
    Posts
    27
    Thanks for the feedback.

    I will probably finish the vb version before I port it to c++ so then I can ensure that its as close as I can get to optimised. So no worries, I will make it abit more user friendly (different ports etc for GPS, atm its hard coded) and release a version for people to play with.

    Quote Originally Posted by djmickyg
    can u put in a destination for it to guide u to?
    I want to make this a feature, adding nearest hospital, police station, path optimisation etc but this involves alot of boring stuff such as mapping out names to points on the map. So I am really just delaying it, fun stuff now.

  6. #6
    Newbie
    Join Date
    Aug 2004
    Location
    Australia
    Posts
    27
    Okay, I havnt done much (or anything) since my last post. But I have uploaded the source code / exe for you guys to check out. Because you may live in another area other than australia bits will need modifying, I dont have time to do that right now. (or effort )

    First up here is the download:
    http://www.cit.uws.edu.au/~npurdy/cbGPS.zip

    To setup the GPS options open the ini file called "gpsConfig.ini" in your base directory. In there it will have the commport, and your unit of measurement. Even if you are using a usb mouse gps it will be mapped to a virtual comm port.

    The map is also only of my area, so to test it you will need a basic map of your area. To set it up go into the maps directory, and open the ini file. I will describe modifying it soon.

    To open a map you point your class call:
    classhere.createMap(picRendMap, App.Path & "\map\ini file")

    The picRendMap is the name of the picture box you wish to render the map into. This is all contained within the project, I just wanted to show how you can open different maps on the fly.

    In the map ini file there are several values. The first is the name of the map file. I recommend using .gif because they are small for the quality, but each to their own.

    Now to be able to tell your position on the map, we need to setup two reference points, and the pixels that they corrospond to on the image file. I recommend driving to 2 locations that are a long distance apart and both on your map, and writing down the GPS co-ordinates. Using something such as an intersection will make it easier to find the point on the map. The further apart your distances the greater your accuracy. But some poeple cant do that, so failing that you could probably find co-ordinates using google and match them to a map.

    Once you have your 2 points, find the locations on the image of the map. Using a paint program such as paint shop pro (you can download an evalution copy) move your mouse to the point 1 on the map. Copy down the X and Y values. The x value becomes your "pixil1Long" value, and the y value becomes your "pixil1Lat" value.

    Do the same with the 2nd reference point.

    You will also need to setup the map width and height in the ini file. This will be fixed soon so it will calculate it without you soon.

    Now test run it, if something is wrong then either
    a) It doesnt have support for other countries yet, implementing is easy, its just I havnt had time yet.

    b) There is an unknown bug (pretty unlikely, but possible!)

    c) You messed up something in the map ini file or gpsConfig.ini

    Good luck with it, hopefully soon I will get some more time with it and add some real features.

    Comments / suggestions?

  7. #7
    Nic
    Nic is offline
    FLAC Nic's Avatar
    Join Date
    Oct 2003
    Location
    Melbourne, Australia
    Posts
    1,047
    can it be ported easily to linux?
    Signature: [==||========] 20% complete

  8. #8
    Constant Bitrate pate60's Avatar
    Join Date
    Jun 2004
    Location
    Auckland, New Zealand.
    Posts
    210

    Nice App Dude,

    I understand the principle on how to convert lat/long to pixels on a map, however dont know how to do it if that makes sense.

    Could you possibly explain this?

    i would have a look at your source but dont have VB.

    cheers
    nash

  9. #9
    It ain't easy being a green moderator meddler's Avatar
    Join Date
    Aug 2002
    Location
    Steps out the front of Henson's workshop or Sydney
    Posts
    2,782
    @Hellcat: keep going on it... there are a lot of us who want a decent gps solution for OZ without the huge price tag
    Never let the truth get in the way of a good story

  10. #10
    TX5
    TX5 is offline
    Constant Bitrate
    Join Date
    Apr 2004
    Location
    Sydney
    Posts
    174
    i think i might have a friend that goes to your uni. he has a similar short cut by the looks of it.....

Page 1 of 2 12 LastLast

Similar Threads

  1. external gps and aprs vehicle tracking
    By swingwally in forum GPS
    Replies: 12
    Last Post: 10-23-2004, 02:33 PM
  2. GPS Not working on startup
    By danl in forum GPS
    Replies: 16
    Last Post: 07-06-2004, 11:08 AM
  3. New GPS Mouse and Routis
    By carpcnoobie in forum GPS
    Replies: 5
    Last Post: 06-04-2004, 06:17 AM
  4. Replies: 4
    Last Post: 09-04-2003, 09:20 AM
  5. Music and GPS
    By Mikesz in forum GPS
    Replies: 1
    Last Post: 02-28-2003, 02:26 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •