LUA API gps error
- borisff
- Offline Autor
- Senior Mitglied
- Beiträge: 61
- Dank erhalten: 3
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 22:49
von borisff
Letzte Änderung: 10 Apr. 2021 22:49 von borisff.
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- Raf
- Offline
- Premium Mitglied
- Beiträge: 137
- Dank erhalten: 184
Oh, there is a typo, use function name "getStrig"...
Voltario T30, Touch Switch, MicroVario, AMS, SE6
von Raf
Folgende Benutzer bedankten sich: borisff, nikolausi, LeonAir
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- borisff
- Offline Autor
- Senior Mitglied
- Beiträge: 61
- Dank erhalten: 3
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 ?
von borisff
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- nikolausi
- Offline
- Platinum Mitglied
- Beiträge: 327
- Dank erhalten: 153
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
von nikolausi
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- Raf
- Offline
- Premium Mitglied
- Beiträge: 137
- Dank erhalten: 184
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 15:44
von Raf
Letzte Änderung: 03 Feb. 2022 15:44 von Raf.
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
Ladezeit der Seite: 0.968 Sekunden