I tried out the GPS functionality on Codea 2 - mostly it works fine. But I’m having problems with the compass on an iPad 3. This code
displayMode(FULLSCREEN)
function setup()
location.enable()
end
function draw()
background(226, 226, 226, 255)
text(location.speed,WIDTH/2,HEIGHT/2)
text(location.course,WIDTH/2,HEIGHT/2+300)
text(location.latitude, WIDTH/2,HEIGHT/2-300)
end
works fine for location.speed and location.latitude but location.course 99.99% of the time returns -1 and once, just once, it returned 131.8.