aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/TytanProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-09-28 11:47:46 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-09-28 11:47:46 +1300
commit9b08cbbca6a35862fbc33e48f5d876899954a17d (patch)
treecc8c1e892172742e35482cbc6ae6ca232b43366d /src/org/traccar/protocol/TytanProtocolDecoder.java
parent063e5399efac99e0e73983d0534f37f052b52e49 (diff)
downloadtrackermap-server-9b08cbbca6a35862fbc33e48f5d876899954a17d.tar.gz
trackermap-server-9b08cbbca6a35862fbc33e48f5d876899954a17d.tar.bz2
trackermap-server-9b08cbbca6a35862fbc33e48f5d876899954a17d.zip
Decode extra Tytan parameters
Diffstat (limited to 'src/org/traccar/protocol/TytanProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/TytanProtocolDecoder.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/TytanProtocolDecoder.java b/src/org/traccar/protocol/TytanProtocolDecoder.java
index 04d095a9f..bcab7ed21 100644
--- a/src/org/traccar/protocol/TytanProtocolDecoder.java
+++ b/src/org/traccar/protocol/TytanProtocolDecoder.java
@@ -170,6 +170,12 @@ public class TytanProtocolDecoder extends BaseProtocolDecoder {
case 90:
position.set(Event.KEY_POWER, readSwappedFloat(buf));
break;
+ case 101:
+ position.set(Event.KEY_SPEED, buf.readUnsignedByte());
+ break;
+ case 102:
+ position.set(Event.KEY_RPM, buf.readUnsignedByte() * 50);
+ break;
case 107:
position.set(Event.KEY_FUEL, (buf.readUnsignedShort() & 0x3fff) * 0.5);
break;