aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-12-10 00:40:13 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2019-12-10 00:40:13 -0800
commit7cfae9b852f147423b7dd58bad2b0fdcf10bb9d0 (patch)
treeca7d8f5059fa95e6ffd1c4b3453240b35903a773 /src/main/java/org
parentf8e1a7eb00a6bd11543dc8e3ee1ef43e2ccd7bc2 (diff)
downloadtraccar-server-7cfae9b852f147423b7dd58bad2b0fdcf10bb9d0.tar.gz
traccar-server-7cfae9b852f147423b7dd58bad2b0fdcf10bb9d0.tar.bz2
traccar-server-7cfae9b852f147423b7dd58bad2b0fdcf10bb9d0.zip
Fix speed decoding
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/traccar/protocol/PacificTrackProtocolDecoder.java2
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: