Hi, im trying a script on lua, with getGpsPos(), but it only show me the latitude with 1 decimal.
the script:
function onTick()
a = getGpsPos()
println(a)
end
and i get on the consoloe
-33.5, only that
on dashboard, this is my latitude and longitude
-33.499943 and -70.524559
firmware mk2 v2.8.3
also i have problem with getGpsTime(), that not show me the time
maybe its a bug of lua?
Regards
problem with getGpsPos(), only show latitude
Hi,
Sorry this is coming so late.
You need to call it this way
lat, lon = getGpsPos()
http://autosportlabs.net/RaceCapturePro ... sPos.28.29
As you can see, it is returning two values.
Hope this helps; please let us know if we can help further!
Sorry this is coming so late.
You need to call it this way
lat, lon = getGpsPos()
http://autosportlabs.net/RaceCapturePro ... sPos.28.29
As you can see, it is returning two values.
Hope this helps; please let us know if we can help further!