LUA API gps error
- borisff
-
Topic Author
- Offline
- Senior Member
-
- Posts: 65
- Thank you received: 3
TPL_KUNENA_MESSAGE_CREATED LUA API gps error
10 Apr 2021 18:40 - 10 Apr 2021 20:49
Example page 105 of JETI DCDS_Lua_API_1.5.pdf
local position = gps.newPoint("49.57873221509796","17.398918569087982")
(or local position = gps.newPoint(49.57873221509796,17.398918569087982))
local latitudes, longitudes = gps.getString(position) -- this line number 89
gives an error
Error in gps: ./Apps/gps.lua:89: attempt to call a nil value (field 'getString')
attempt to call a nil value (filed 'getString') both in emulator and real DC-24 console
Thanks
local position = gps.newPoint("49.57873221509796","17.398918569087982")
(or local position = gps.newPoint(49.57873221509796,17.398918569087982))
local latitudes, longitudes = gps.getString(position) -- this line number 89
gives an error
Error in gps: ./Apps/gps.lua:89: attempt to call a nil value (field 'getString')
attempt to call a nil value (filed 'getString') both in emulator and real DC-24 console
Thanks
Last edit: 10 Apr 2021 20:49 by borisff.
Please Log in or Create an account to join the conversation.
- Raf
-
- Offline
- Premium Member
-
- Posts: 141
- Thank you received: 192
TPL_KUNENA_MESSAGE_REPLIED_NEW LUA API gps error
25 Jun 2021 08:54
Oh, there is a typo, use function name "getStrig"...
Voltario T30, Touch Switch, MicroVario, AMS, SE6
The following user(s) said Thank You: borisff, nikolausi, LeonAir
Please Log in or Create an account to join the conversation.
- borisff
-
Topic Author
- Offline
- Senior Member
-
- Posts: 65
- Thank you received: 3
TPL_KUNENA_MESSAGE_REPLIED_NEW LUA API gps error
25 Jun 2021 09:10
yep, thanks
local p3= gps.newPoint("49.57873221509796","17.398918569087982")
local la3, lo3 = gps.getStrig(p3)
print(lFormat("la=%s lo=%s", la3, lo3))
console:
la=49.57873222 lo=17.39891857
How do you find that ?
local p3= gps.newPoint("49.57873221509796","17.398918569087982")
local la3, lo3 = gps.getStrig(p3)
print(lFormat("la=%s lo=%s", la3, lo3))
console:
la=49.57873222 lo=17.39891857
How do you find that ?
Please Log in or Create an account to join the conversation.
- nikolausi
-
- Offline
- Platinum Member
-
- Posts: 328
- Thank you received: 153
TPL_KUNENA_MESSAGE_REPLIED_NEW LUA API gps error
23 Jan 2022 13:47
Functions gps.getBearing and gps.getDestination are missing in Functions overview of JETI DC/DS Lua Programming API v1.5
Hope they make it into next version
Thanks
Hope they make it into next version
Thanks
jemoview - jeti model viewer
jetiforum.de/index.php/flightmonitor/120...w-jeti-modell-viewer
github.com/werinza/jemoview
R2H - Return to Home Lua App
jetiforum.de/index.php/lua-fuer-die-dc-d...2-r2h-return-to-home
github.com/werinza/R2H
jetiforum.de/index.php/flightmonitor/120...w-jeti-modell-viewer
github.com/werinza/jemoview
R2H - Return to Home Lua App
jetiforum.de/index.php/lua-fuer-die-dc-d...2-r2h-return-to-home
github.com/werinza/R2H
Please Log in or Create an account to join the conversation.
- Raf
-
- Offline
- Premium Member
-
- Posts: 141
- Thank you received: 192
TPL_KUNENA_MESSAGE_REPLIED_NEW LUA API gps error
03 Feb 2022 14:44 - 03 Feb 2022 14:44
Hihi, important is that they are not missing in implementation 
And documentation for those functions is not missing too.
And documentation for those functions is not missing too.
Voltario T30, Touch Switch, MicroVario, AMS, SE6
Last edit: 03 Feb 2022 14:44 by Raf.
Please Log in or Create an account to join the conversation.
Time to create page: 0.328 seconds