diff options
author | Anton Tananaev <anton@traccar.org> | 2022-10-20 05:54:29 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-10-20 05:54:29 -0700 |
commit | 73b174094effa2a2c9c3a076b5c244ba832a90c2 (patch) | |
tree | 5875d0f7de91fa0b62cd8e75d42297ff6dddeaf2 /src/main | |
parent | 8f537de3bbf4dc1a742222dfd3123090b79e6419 (diff) | |
download | trackermap-server-73b174094effa2a2c9c3a076b5c244ba832a90c2.tar.gz trackermap-server-73b174094effa2a2c9c3a076b5c244ba832a90c2.tar.bz2 trackermap-server-73b174094effa2a2c9c3a076b5c244ba832a90c2.zip |
Add Minifinder HDOP
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java | 4 |
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; |