The MP3car.com Store The MP3car.com Blog    

Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > GPS

Reply
 
LinkBack Thread Tools Display Modes
Old 04-30-2007, 05:32 PM   #1
Newbie
 
Join Date: Dec 2006
Posts: 11
Writing my own GPS speed and acceleration logging!

Hi,

Does anyone know of a program that i can run that will log my speed, acceleration and direction to a file in a readable format? It doesnt have to be terribly accurate just a rough idea.

I cant use ODB as my car has a stand alone engine management system that doesnt support it.

I dont want any sort of navigation software!

I have found a few programs that do what i want but they only run on windows CE which isnt much help.

Thanks

Mike

Last edited by mike_cjo; 05-11-2007 at 06:33 AM. Reason: changed title
mike_cjo is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 05-01-2007, 09:00 AM   #2
Newbie
 
Join Date: Dec 2006
Posts: 11
It doesnt look like there is much if anything out there that will do what i want so i have decided to write one for myself!

So far i have just got a basic thing displaying the live GPS sentances as they come in.

Next will be to get it to parse the sentences to get the information i want out of it.
mike_cjo is offline   Reply With Quote
Old 05-03-2007, 10:12 AM   #3
Newbie
 
Join Date: Jun 2006
Posts: 30
good luck, im interested. it owuld be cool if you could incorporate a function that did split timing per specified distance too.
bungsai is offline   Reply With Quote
Old 05-04-2007, 09:51 AM   #4
Newbie
 
Join Date: Dec 2006
Posts: 11
Thumbs up TurfyGPS

A little update for you.

I have now got it accurately logging speed and distance to a text file.
I have also added in a test mode so i can test it from a pre recorded log file.

Next job is calculating the acceleration, this should be pretty simple.

Direction and altitude would be quite cool as well.

Funnilly enough i was thinking about adding a split time and average speed feature to it. I think split time would be best if it knew the long/lat of the start line rather than the circuit length as depending on your line that could vary each lap.
mike_cjo is offline   Reply With Quote
Old 05-05-2007, 12:47 PM   #5
Newbie
 
Join Date: Jun 2006
Posts: 30
Quote: Originally Posted by mike_cjo View Post
A little update for you.

I have now got it accurately logging speed and distance to a text file.
I have also added in a test mode so i can test it from a pre recorded log file.

Next job is calculating the acceleration, this should be pretty simple.

Direction and altitude would be quite cool as well.

Funnilly enough i was thinking about adding a split time and average speed feature to it. I think split time would be best if it knew the long/lat of the start line rather than the circuit length as depending on your line that could vary each lap.

much better idea than mine

keep it up, cant wait.
bungsai is offline   Reply With Quote
Old 05-07-2007, 06:21 AM   #6
Newbie
 
pleyraki's Avatar
 
Join Date: Sep 2005
Location: Iraklio Crete Greece
Posts: 14
details?

Hi.

Would you please elaborate as to how you calculate distance? The GPS just sends speed every say 1 sec, right? Then what?

Thanks.

Quote: Originally Posted by mike_cjo View Post
A little update for you.

I have now got it accurately logging speed and distance to a text file.
I have also added in a test mode so i can test it from a pre recorded log file.

Next job is calculating the acceleration, this should be pretty simple.

Direction and altitude would be quite cool as well.

Funnilly enough i was thinking about adding a split time and average speed feature to it. I think split time would be best if it knew the long/lat of the start line rather than the circuit length as depending on your line that could vary each lap.

__________________
A. Plevrakis
Iraklion, Crete, Greece.
pleyraki is offline   Reply With Quote
Old 05-07-2007, 05:08 PM   #7
Newbie
 
Join Date: Dec 2006
Posts: 11
Hi,

The gps sends out the latitude and longitude of where it is about once a second in the format of Degrees and metric minutes.

to calculate distance you need to use the ‘Haversine’ formula.
http://www.movable-type.co.uk/scripts/latlong.html

This calculates the distance between two points while taking into account the curvature of the earth so you get an reasonably accurate distance traveled.

To calculate the speed you use Speed = Distance/time

I have found that calculating speed over a 4 second period seems to produce a more accurate result than sampling over shorter time intervals.

Hope that helps
mike_cjo is offline   Reply With Quote
Old 05-08-2007, 11:23 AM   #8
Newbie
 
pleyraki's Avatar
 
Join Date: Sep 2005
Location: Iraklio Crete Greece
Posts: 14
Quote: Originally Posted by mike_cjo View Post
to calculate distance you need to use the ‘Haversine’ formula.
http://www.movable-type.co.uk/scripts/latlong.html
Hope that helps

Thanks a lot, that is exactly what I was lloking for...
__________________
A. Plevrakis
Iraklion, Crete, Greece.
pleyraki is offline   Reply With Quote
Old 05-10-2007, 03:11 AM   #9
Newbie
 
Join Date: Dec 2006
Posts: 11
I took my car for a little test drive yesterday with the laptop running version 1 of the software and got it to log my journey.

Its working surprisingly well!!

A week saturday i have the first track day of the year so we shall see what it does!
mike_cjo is offline   Reply With Quote
Old 05-10-2007, 05:17 AM   #10
Variable Bitrate
 
Nerd2's Avatar
 
Join Date: Dec 2006
Location: Bristol/Cambridge, England
Posts: 237
Presumiably your program doesn't account for altitude change then?
Nerd2 is offline   Reply With Quote
Old 05-10-2007, 06:13 AM   #11
Newbie
 
Join Date: Dec 2006
Posts: 11
not as of yet, although thats a very simple thing to add.

At the moment its not needed its not like im driving through mountains!! And seeing as castle coombe is a relativly flat circuit with no more than a 20ft height difference between the highest and lowest points. The majority of the circuit is flat with a dip and a climb on the main straight. The only other place i will probably use it in the near future will be at santa pod where there is no altitude change in the slightest.

its one of the many things to add at a later date if i even decide i need it.
mike_cjo is offline   Reply With Quote
Old 05-10-2007, 07:13 AM   #12
Constant Bitrate
 
Join Date: Jan 2005
Posts: 178
There are lots of progs to log the raw gps data. Personally I would do that and then work on it afterwards. That way you can always change the exact calculations that you make and apply them in retrospect.
ElKeeed is offline   Reply With Quote
Old 05-10-2007, 07:20 AM   #13
Variable Bitrate
 
Nerd2's Avatar
 
Join Date: Dec 2006
Location: Bristol/Cambridge, England
Posts: 237
Wooo, Castle Coombe near Bristol? Small world ;-)

Yeah would need altitude for normal use probably, have you any thoughs on how you would implement it?
Nerd2 is offline   Reply With Quote
Old 05-10-2007, 08:54 AM   #14
Newbie
 
Join Date: Dec 2006
Posts: 11
Im also recording the raw data but i want something i can look at quickly and compair laptimes. Processing time isnt a problem and im not after a 100% accurate speed just a rough idea to see how i improve and what the car can currently do.

i have found a few interesting pieces of information on converting polar to cartesian co-ords which take altitude into account and i may well look into using this method in version 2 at some point.

Yup, the vary same castle coombe!
mike_cjo is offline   Reply With Quote
Old 05-11-2007, 06:32 AM   #15
Newbie
 
Join Date: Dec 2006
Posts: 11
I was thinking about this a bit more last night.

We know the Haversign or great circle calculation isnt 100% accurate as the earth isnt a perfect sphere.

measuring distance usinf 2 sets of polar co-ords is a lot more accurate.

The thing that dawned on me last night was that really i need to include both methods in my software as altitude is only available with a 4 sat lock where as long and lat can come from a 3 sat lock. So i need to keep the Haversign method as a reserve incase i cant get more than 3 sats to lock onto.

I think this weekend i shall start on version 2 of TurfyGPS!
mike_cjo 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 On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
GPS software i've written... RiPz GPS 17 02-27-2006 03:56 PM
Newbie's guide EBFoxbat Newbie 6 02-08-2005 11:06 AM
programming deadreckoning gps software? djkriz GPS 103 02-07-2005 11:56 AM
winamp gps interface - feature wish list LoreleiGuy Software & Software Development 16 06-17-2001 09:38 AM


All times are GMT -5. The time now is 01:28 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