diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-12-10 00:40:13 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-12-10 00:40:13 -0800 |
commit | 7cfae9b852f147423b7dd58bad2b0fdcf10bb9d0 (patch) | |
tree | ca7d8f5059fa95e6ffd1c4b3453240b35903a773 /src | |
parent | f8e1a7eb00a6bd11543dc8e3ee1ef43e2ccd7bc2 (diff) | |
download | traccar-server-7cfae9b852f147423b7dd58bad2b0fdcf10bb9d0.tar.gz traccar-server-7cfae9b852f147423b7dd58bad2b0fdcf10bb9d0.tar.bz2 traccar-server-7cfae9b852f147423b7dd58bad2b0fdcf10bb9d0.zip |
Fix speed decoding
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/traccar/protocol/PacificTrackProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/PacificTrackProtocolDecoder.java b/src/main/java/org/traccar/protocol/PacificTrackProtocolDecoder.java index 5959a1de7..15e08d7b1 100644 --- a/src/main/java/org/traccar/protocol/PacificTrackProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/PacificTrackProtocolDecoder.java @@ -80,7 +80,7 @@ public class PacificTrackProtocolDecoder extends BaseProtocolDecoder { position.setLongitude(buf.readUnsignedInt() / 1000000.0 - 180.0); int speedAndCourse = buf.readUnsignedMedium(); position.setCourse(BitUtil.from(speedAndCourse, 12)); - position.setSpeed(UnitsConverter.knotsFromKph(BitUtil.to(speedAndCourse, 12))); + position.setSpeed(UnitsConverter.knotsFromKph(BitUtil.to(speedAndCourse, 12) * 0.1)); position.set(Position.KEY_INDEX, buf.readUnsignedShort()); break; case 0x100: |