forked from petr-s/android-nmea-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBasicNMEAAdapter.kt
More file actions
63 lines (57 loc) · 1.4 KB
/
BasicNMEAAdapter.kt
File metadata and controls
63 lines (57 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
package com.github.petr_s.nmea.basic
import com.github.petr_s.nmea.basic.BasicNMEAHandler.FixQuality
import com.github.petr_s.nmea.basic.BasicNMEAHandler.FixType
class BasicNMEAAdapter : BasicNMEAHandler {
override fun onStart() {}
override fun onRMC(
date: Long?,
time: Long?,
posStatus: String?,
latitude: Double?,
longitude: Double?,
speed: Float?,
direction: Float?,
magVar: Float?,
magVarDir: String?,
modeInc: String?,
isGN: Boolean
) {
}
override fun onGGA(
time: Long?,
latitude: Double?,
longitude: Double?,
altitude: Float?,
quality: FixQuality?,
satellites: Int?,
hdop: Float?,
age: Float?,
station: Int?,
isGN: Boolean
) {
}
override fun onGSV(
satellites: Int?,
index: Int?,
prn: Int?,
elevation: Float?,
azimuth: Float?,
snr: Int?,
isGN: Boolean
) {
}
override fun onGSA(
mode: String?,
type: FixType?,
prns: Set<Int?>?,
pdop: Float?,
hdop: Float?,
vdop: Float?,
isGN: Boolean
) {
}
override fun onUnrecognized(sentence: String?) {}
override fun onBadChecksum(expected: Int, actual: Int) {}
override fun onException(e: Exception?) {}
override fun onFinished() {}
}