RegisterSearchFAQMemberlistUsergroupsLog in
Reply to topic Page 1 of 2
Goto page 1, 2  Next
How to get GPS speed in kph?
Author Message
Reply with quote
Post How to get GPS speed in kph? 
Using a Mk1 unit with latest V2 software.

GPS speed is in units of MPH. How to configure it for kph?

Preferences in the RaceCapture app are set for Celsius and kilometers. I don't see any option under the GPS section to select units, and I can't find any other places to select units. So how to get metric GPS data?

View user's profile Send private message
Reply with quote
Post  
No one knows????? I know there are users in Europe. Except for a "pint" the metric system is used in Europe, right?

View user's profile Send private message
Reply with quote
Post  
Virtual channel with getGpsSpeed()*1.6 would seem to be a quick and dirty work around.


_________________
Josh
View user's profile Send private message
Reply with quote
Post  
Also wondering how to do this without using a virtual channel!

View user's profile Send private message
Reply with quote
Post  
Hi GTISpirit, this is on our todo list, hang in there!


_________________
Ryan Doherty
Autosports Labs
View user's profile Send private message
Reply with quote
Post  
Did this ever get implemented? I thought I saw a selection for units preference, but GPS speed in my most recent recording is in mph. Sad And now I can't find where I saw the units preference selection, so maybe I'm remembering wrong and it's still not possible to get GPS speed in kph without a virtual channel????

View user's profile Send private message
Reply with quote
Post  
GTIspirit wrote:
Did this ever get implemented? I thought I saw a selection for units preference, but GPS speed in my most recent recording is in mph. Sad And now I can't find where I saw the units preference selection, so maybe I'm remembering wrong and it's still not possible to get GPS speed in kph without a virtual channel????


Not yet I'm afraid. It is something we are aware of internally but there is a high cost to making this change a reality for us. We would like to fix it as well but there are many things that need to happen before we will be able to support it effectively.


_________________
Andrew Stiegmann (Stieg)
Principal Engineer
Autosport Labs Inc.
View user's profile Send private message Send e-mail Visit poster's website
Reply with quote
Post  
just here to voice my opinion that this is a need to have... The majority of the stuff I do is in metric. Every software I've used always has the units able to be switched so I never even thought to check if this app is capable of doing it.

Please fix it...

View user's profile Send private message
Reply with quote
Post  
Actually, it's somewhat surprising that RCPro ended up with GPS speed in mph when the NMEA string is in knots or kmh. It would be extra work to provide GPS speed in mph.....

View user's profile Send private message
Reply with quote
Post  
So I'm not quite understanding how to add a virtual channel. I followed the instructions and examples, and here's what I have

This gets added to the Lua header, to configure the new channel
SpeedGPS = addChannel("SpeedGPS", 10, 2, 0, 200, "kmh"]
What I don't quite understand, is the first argument in addChannel == existing channel name, or != existing channel name?

Then in the onTick section there is this line:
setChannel(SpeedGPS, getGpsSpeed()*1.61)

I'm expecting to see a new channel named "SpeedGPS" in the drop down list of the analysis.

There is no new channel, and the Lua script crashes. Indication that the Lua script crashes is that the shift lights are glowing dimly. When the Lua script is running correctly the shift lights will be off with key on engine off.

So what am I missing here?

P.S. moderators, feel free to move this to the Lua script section now since the thread has taken a turn into doing.

Doh, typo in the first line, incorrectly ended with square brace instead of parenthesis. But now Lua is out of memory Surprised
https://forum.autosportlabs.com/viewtopic.php?p=24663#24663

View user's profile Send private message
Reply with quote
Post  
I would start by adapting one of the simple examples for virtual channels, and expanding from there:

https://wiki.autosportlabs.com/RaceCapturePro_Lua_Scripting_Examples

You can start a new topic as needed, we'll leave this one here.


_________________
Brent Picasso
CEO and Founder, Autosport Labs
Facebook | Twitter
View user's profile Send private message Send e-mail
Reply with quote
Post  
Can't believe that configuration of different units is not possible without Lua. Could you just fix this, please? This is open for too long in my opinion.
Is there a way to overwrite the units of an existing channel with Lua? If I do this, it does not work and stays with "mph":

Code:
tickRate=30

SpeedId = addChannel("Speed", 10, 0, 0, 300, "KMH")
function onTick()
setChannel(SpeedId, getGpsSpeed()/1.61)

end


View user's profile Send private message Visit poster's website
Reply with quote
Post  
Hi,

We're sorry this has taken so long, and it is one of our highest priorities. Fortunately, part of the work is already done, which will help speed up the remaining implementation.

You can't override the built-in speed channel that way. Best thing to do in the meantime is create a separate Speed channel (example: SpeedKph) with the conversion applied, using a virtual channel.

We'll be sure to announce when support is available. Thanks again for your patience!


_________________
Brent Picasso
CEO and Founder, Autosport Labs
Facebook | Twitter
View user's profile Send private message Send e-mail
Reply with quote
Post  
The GPS NMEA speed sentence is natively in M = m/s, N = knots, K = km/hr, so it's a bit strange how we ended up with mph and why it would be so difficult to flip back to a native value. Thank goodness for the LUA scripting to make the conversion as a workaround.

View user's profile Send private message
Reply with quote
Post  
When will you look to add it as an option app release?
I hope for early release.

View user's profile Send private message
Display posts from previous:
Reply to topic Page 1 of 2
Goto page 1, 2  Next
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum