-
Notifications
You must be signed in to change notification settings - Fork 231
GPS SENSOR
Jaume Olivé Petrus edited this page Aug 3, 2017
·
4 revisions
What | Comments | |
---|---|---|
Identifier | GPS | NMEA 0183 UART |
Interface | UAR | |
Provides | lon | degrees |
lat | latitude | |
sats | number of satellites | |
Properties | none |
gps = sensor.attach("GPS", uart.UART1, 9600, 8, uart.PARNONE, uart.STOP1)
while true do
lon = gps:read("lon")
lat = gps:read("lat")
sats = gps:read("sats")
print("lon: "..lon..", lat: "..lat..", sats: "..sats)
tmr.delayms(500)
end