aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-09-05 21:22:41 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2016-09-05 21:22:41 +1200
commit0d3c05a24992eeeba02032e474d3a9bbb3239f10 (patch)
tree355514090f4cc6c940979ff25f8d93845ed39266 /src/org
parent6aca189651d8587b9178a38c1830a8cbd8ae0d46 (diff)
downloadtraccar-server-0d3c05a24992eeeba02032e474d3a9bbb3239f10.tar.gz
traccar-server-0d3c05a24992eeeba02032e474d3a9bbb3239f10.tar.bz2
traccar-server-0d3c05a24992eeeba02032e474d3a9bbb3239f10.zip
Fix Sinocastel course decoding
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/protocol/CastelProtocolDecoder.java2
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) {