are you using the great circles distance calc or utm conversion ive also scoured the net for some decent code for gps gas and found that great circles is usually pretty good matches up with google and yahoo maps pretty well
Printable View
are you using the great circles distance calc or utm conversion ive also scoured the net for some decent code for gps gas and found that great circles is usually pretty good matches up with google and yahoo maps pretty well
Yes I used the great circles distance formula, I hope Guino adds this to RR, and provide 3 or 4 counter labels, then we can each use the information the way we want too.
Guino can probably shed more light on how hard it will be but he is already reading the raw gps information. I did all the maths (about 6 lines of code) in one function so it would be easy for Guino to copy. It will only need a bit of a syntax change to make it work in VB. AutoIt and VB code is very similar especially the all the trig functions.
Add Counter1 Counter2 ……as new RR labels
add 4 command
start counter#, stop counter#, Clear Counter#, counter direction# (EG count up or down)
While it works in Autoit passing labels back and forward between AutoIT and RR just uses extra CPU which most people hate
Then we can each use the Counter labels for our own needs, like you say use it your GPS Gasoline app.
I imagine that a few like Tissy and DiNASTY will do flash trip meters, if we can get this to fly
Also thought that Chuck would want one for his Truck, if he doesn’t use it to keep track of distance he can always use it to count his RR variables:D
im sure someone wil chime in eventually to say that what if you lose gps signal well for one thing its possible to place a counter in the app that if and update is not recieved for say 5- 10 seconds or more it then dumps those untracked variables then upon resumption of the signal it should dump the next distanc calculation into a lostsignal.ini and also add it to the trip meter then you can go back and view those droputs and see it they make sense or not in terms of calculation lets say u have a distance of 30 miles in there obviosly wrong
what do you think
if i wasnt coding gps gas id take a stab at this let me know if u need any help
But your speed will also be reporting 0km so no data will be added to the counter, when you get signal back the distance from your last recorded point will be calculated, so if you drive in to a tunnel and lose gps for 2km (long tunnel) when you get back out the gps signal will come back, the speed will be > that 0 and the calculation will be based on your last known point (just before you went in the tunnel) to your current point, so it will still be very accurate.Quote:
Originally Posted by lostreception
EDIT Unless you’re in some alpine region and the tunnels go round in spirals
Hmmm, I'm surprised there are not more people interested in this. I would have thought a lot of people would have jumped on this idea even if just expressing an interest. Ash, let us know if there are further developments.
me tooQuote:
Originally Posted by rustyboxx
What I'd love to see is a functional trip meter with fill up and maintenance input all on one screen with MPG calculation as well.
I'm interested, how can I help?
Ash, how about a screenie? There might be a bit more interest if people can see your idea ;)
I got this PM from Guino
Reading the FAQ it looks like VB is required which I don’t have, so I asked CDR if he could help outQuote:
I use I would suggest you make a little plugin for that.. there's a new FAQ up about using the extension plugin interface, and seems like the right option for this feature.
CDR has agreed to do something in VB for us, I have sent him my notes and the AutoIt scripts I did.
I would like to thank CDR for agreeing to help out
Good news indeed. He's a good chap that CdR :D