From 0d3c05a24992eeeba02032e474d3a9bbb3239f10 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 5 Sep 2016 21:22:41 +1200 Subject: Fix Sinocastel course decoding --- src/org/traccar/protocol/CastelProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3