diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-09-05 21:22:41 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-09-05 21:22:41 +1200 |
commit | 0d3c05a24992eeeba02032e474d3a9bbb3239f10 (patch) | |
tree | 355514090f4cc6c940979ff25f8d93845ed39266 /src | |
parent | 6aca189651d8587b9178a38c1830a8cbd8ae0d46 (diff) | |
download | trackermap-server-0d3c05a24992eeeba02032e474d3a9bbb3239f10.tar.gz trackermap-server-0d3c05a24992eeeba02032e474d3a9bbb3239f10.tar.bz2 trackermap-server-0d3c05a24992eeeba02032e474d3a9bbb3239f10.zip |
Fix Sinocastel course decoding
Diffstat (limited to 'src')
-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 994c66ea6..38fb11164 100644 --- a/src/org/traccar/protocol/CastelProtocolDecoder.java +++ b/src/org/traccar/protocol/CastelProtocolDecoder.java @@ -67,7 +67,7 @@ public class CastelProtocolDecoder extends BaseProtocolDecoder { double lat = buf.readUnsignedInt() / 3600000.0; double lon = buf.readUnsignedInt() / 3600000.0; position.setSpeed(UnitsConverter.knotsFromCps(buf.readUnsignedShort())); - position.setCourse(buf.readUnsignedShort() % 360); + position.setCourse(buf.readUnsignedShort() * 0.1); int flags = buf.readUnsignedByte(); if ((flags & 0x02) == 0) { |