aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-10-20 05:54:29 -0700
committerAnton Tananaev <anton@traccar.org>2022-10-20 05:54:29 -0700
commit73b174094effa2a2c9c3a076b5c244ba832a90c2 (patch)
tree5875d0f7de91fa0b62cd8e75d42297ff6dddeaf2 /src/main/java/org/traccar/protocol
parent8f537de3bbf4dc1a742222dfd3123090b79e6419 (diff)
downloadtrackermap-server-73b174094effa2a2c9c3a076b5c244ba832a90c2.tar.gz
trackermap-server-73b174094effa2a2c9c3a076b5c244ba832a90c2.tar.bz2
trackermap-server-73b174094effa2a2c9c3a076b5c244ba832a90c2.zip
Add Minifinder HDOP
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-rw-r--r--src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java b/src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java
index bec05ffc2..f0ae28756 100644
--- a/src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java
@@ -198,7 +198,9 @@ public class Minifinder2ProtocolDecoder extends BaseProtocolDecoder {
position.setSpeed(UnitsConverter.knotsFromKph(buf.readUnsignedShortLE()));
position.setCourse(buf.readUnsignedShortLE());
position.setAltitude(buf.readShortLE());
- position.setValid(buf.readUnsignedShortLE() > 0);
+ int hdop = buf.readUnsignedShortLE();
+ position.setValid(hdop > 0);
+ position.set(Position.KEY_HDOP, hdop * 0.1);
position.set(Position.KEY_ODOMETER, buf.readUnsignedIntLE());
position.set(Position.KEY_SATELLITES, buf.readUnsignedByte());
break;