The MP3car.com Store The MP3car.com Store    

Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development > Coders Corner

Reply
 
LinkBack Thread Tools Display Modes
Old 05-10-2006, 01:09 PM   #1
Constant Bitrate
 
Goddy's Avatar
 
Join Date: Dec 2004
Location: Netherlands
Posts: 129
Can't get floating point lon/lat out of MonkeyTalk.dll in Delphi

I am trying to make my own lon/lat logger for mapmonkey, because the current one is fixed to 10 seconds.

After a while I managed to get the .dll working and reading data from MapMonkey. But when I'm getting the lon/lat coordinates it is converting them to numbers instead of full floating points.

This is how I coded it and what i got:


Memo1.Lines.Add('Lat: ' + floattostrf(MonkeyMessenger1.Latitude,ffFixed,15,8 ) + ' Lon: ' + floattostr(MonkeyMessenger1.Longitude));

Result: Lat: 52,00000000 Lon: 4

I tried to convert it using the format with floattostrf() and with floattostr() but I got no luck.

What am I doing wrong? Thanks

Last edited by Goddy; 05-16-2006 at 09:48 AM.
Goddy is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 05-15-2006, 03:30 PM   #2
Variable Bitrate
 
DeltaFX's Avatar
 
Join Date: Sep 2004
Location: France
Posts: 401
Is this delphi ?

Depending on your OS, you could use xport or Gpsgate to duplicate your comport, then read that duplicated comport with yourown app.

Do you have a link to the doc for this dll ?
__________________
Now Galileo is real. Muhahahahaha :p
DeltaFX is offline   Reply With Quote
Old 05-16-2006, 09:47 AM   #3
Constant Bitrate
 
Goddy's Avatar
 
Join Date: Dec 2004
Location: Netherlands
Posts: 129
Its just MonkeyTalk.dll in Delphi (7.0). Comport splitter will only be more work.

The Lat/lon is just ready to grab but for some reason im getting rounded numbers instead of real/double/float.
Goddy is offline   Reply With Quote
Old 05-17-2006, 03:40 AM   #4
Variable Bitrate
 
DeltaFX's Avatar
 
Join Date: Sep 2004
Location: France
Posts: 401
I don't use MapMonkey, that why I asked for a doc about that dll.
__________________
Now Galileo is real. Muhahahahaha :p
DeltaFX is offline   Reply With Quote
Old 05-26-2006, 08:19 AM   #5
Newbie
 
Join Date: May 2006
Posts: 4
I was attended to this thread after posting my own, but here's the solution:

http://www.mp3car.com/vbulletin/mm-bugs/77399-monkeytalk-only-reporting-limited-gps-coords.html
Marc-David is offline   Reply With Quote
Old 05-27-2006, 06:39 AM   #6
Constant Bitrate
 
Goddy's Avatar
 
Join Date: Dec 2004
Location: Netherlands
Posts: 129
Yes, that got it fixed, thanks
Goddy is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
I can't come out of full screen with movies, but can with text clean customs FrodoPlayer 4 01-29-2005 06:35 PM


All times are GMT -5. The time now is 03:46 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics