diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-12-19 11:52:56 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-12-19 11:52:56 +1300 |
commit | de9a600541738bd14608e740b495693f79bc97a1 (patch) | |
tree | 1569ea5dd69cbaeea795e9ed844160a02edb0ebb /src/org | |
parent | 56131bb61d845cfd4684ee315d2b713305a4446c (diff) | |
download | trackermap-server-de9a600541738bd14608e740b495693f79bc97a1.tar.gz trackermap-server-de9a600541738bd14608e740b495693f79bc97a1.tar.bz2 trackermap-server-de9a600541738bd14608e740b495693f79bc97a1.zip |
Correctly docode speed for Castel protocol
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/traccar/protocol/CastelProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/CastelProtocolDecoder.java b/src/org/traccar/protocol/CastelProtocolDecoder.java index bf0d8ea46..e36d086f8 100644 --- a/src/org/traccar/protocol/CastelProtocolDecoder.java +++ b/src/org/traccar/protocol/CastelProtocolDecoder.java @@ -65,7 +65,7 @@ public class CastelProtocolDecoder extends BaseProtocolDecoder { double lat = buf.readUnsignedInt() / 3600000.0; double lon = buf.readUnsignedInt() / 3600000.0; - position.setSpeed(UnitsConverter.knotsFromKph(buf.readUnsignedShort())); + position.setSpeed(UnitsConverter.knotsFromCps(buf.readUnsignedShort())); position.setCourse(buf.readUnsignedShort() % 360); int flags = buf.readUnsignedByte(); |