20,741
edits
Line 88: | Line 88: | ||
shuttle_symbol.setScale(0.20); # 20% | shuttle_symbol.setScale(0.20); # 20% | ||
var update_shuttle = func() { | |||
var lat = getprop('/position/latitude-deg'); | |||
var lon = getprop('/position/longitude-deg'); | |||
var (x,y) = position2Pixels(lat:lat,lon:lon); | |||
shuttle_symbol.setTranslation(x,y,); | |||
} | |||
# can use maketimer() to call this regularly | |||
update_shuttle(); | |||
</syntaxhighlight> | </syntaxhighlight> | ||