diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-01-30 20:41:43 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-01-30 20:41:43 -0800 |
commit | 2b2fef08daaa7950a4911aef184f4dca56500da1 (patch) | |
tree | 0ee96a313310fcdae2e6fed4d7bfb7bc20166c3b /src | |
parent | ccbb2893352ef62c95be6f1968214e4a6fa1a08d (diff) | |
download | trackermap-server-2b2fef08daaa7950a4911aef184f4dca56500da1.tar.gz trackermap-server-2b2fef08daaa7950a4911aef184f4dca56500da1.tar.bz2 trackermap-server-2b2fef08daaa7950a4911aef184f4dca56500da1.zip |
Fix speed decoding
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/protocol/SatsolProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
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); |