From 2b2fef08daaa7950a4911aef184f4dca56500da1 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 30 Jan 2019 20:41:43 -0800 Subject: Fix speed decoding --- src/org/traccar/protocol/SatsolProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/org/traccar/protocol/SatsolProtocolDecoder.java b/src/org/traccar/protocol/SatsolProtocolDecoder.java index 77d292d92..c457d5620 100644 --- a/src/org/traccar/protocol/SatsolProtocolDecoder.java +++ b/src/org/traccar/protocol/SatsolProtocolDecoder.java @@ -69,7 +69,7 @@ public class SatsolProtocolDecoder extends BaseProtocolDecoder { position.setTime(new Date(buf.readUnsignedIntLE() * 1000)); position.setLatitude(buf.readUnsignedIntLE() * 0.000001); position.setLongitude(buf.readUnsignedIntLE() * 0.000001); - position.setSpeed(UnitsConverter.knotsFromKph(buf.readUnsignedShortLE())); + position.setSpeed(UnitsConverter.knotsFromKph(buf.readUnsignedShortLE() * 0.01)); position.setAltitude(buf.readShortLE()); position.setCourse(buf.readUnsignedShortLE()); position.setValid(buf.readUnsignedByte() > 0); -- cgit v1.2.3