diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-09-28 11:47:46 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-09-28 11:47:46 +1300 |
commit | 9b08cbbca6a35862fbc33e48f5d876899954a17d (patch) | |
tree | cc8c1e892172742e35482cbc6ae6ca232b43366d /src/org/traccar/protocol/TytanProtocolDecoder.java | |
parent | 063e5399efac99e0e73983d0534f37f052b52e49 (diff) | |
download | trackermap-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.java | 6 |
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; |