How to get GPS speed in kph?
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?
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?
-
- Posts: 70
- Joined: Tue Mar 10, 2015 3:31 pm
- Location: Detroit, MI
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. 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.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. 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????
Andrew Stiegmann (Stieg)
Principal Engineer
Autosport Labs Inc.
Principal Engineer
Autosport Labs Inc.
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
viewtopic.php?p=24663#24663
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
viewtopic.php?p=24663#24663
I would start by adapting one of the simple examples for virtual channels, and expanding from there:
https://wiki.autosportlabs.com/RaceCapt ... g_Examples
You can start a new topic as needed, we'll leave this one here.
https://wiki.autosportlabs.com/RaceCapt ... g_Examples
You can start a new topic as needed, we'll leave this one here.
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":
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: Select all
tickRate=30
SpeedId = addChannel("Speed", 10, 0, 0, 300, "KMH")
function onTick()
setChannel(SpeedId, getGpsSpeed()/1.61)
end
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!
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!