diff options
author | jon-stumpf <jon.stumpf@gmail.com> | 2017-02-25 20:50:12 -0500 |
---|---|---|
committer | jon-stumpf <jon.stumpf@gmail.com> | 2017-03-04 15:57:37 -0500 |
commit | 96ad8262428107025ff3f5cde165cc53117acca4 (patch) | |
tree | 2a89e5c3036b7f419a8125e0328186f15ecfdb39 /src/org/traccar/protocol/AdmProtocolDecoder.java | |
parent | 44a6a0ac96d4925eb0c29bcbcd1807d9176dfa04 (diff) | |
download | trackermap-server-96ad8262428107025ff3f5cde165cc53117acca4.tar.gz trackermap-server-96ad8262428107025ff3f5cde165cc53117acca4.tar.bz2 trackermap-server-96ad8262428107025ff3f5cde165cc53117acca4.zip |
Updated protocols to record additional information as reported in comments and confirmed in available documentation;
Diffstat (limited to 'src/org/traccar/protocol/AdmProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/AdmProtocolDecoder.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/AdmProtocolDecoder.java b/src/org/traccar/protocol/AdmProtocolDecoder.java index 72a6e5bce..a69743222 100644 --- a/src/org/traccar/protocol/AdmProtocolDecoder.java +++ b/src/org/traccar/protocol/AdmProtocolDecoder.java @@ -66,7 +66,7 @@ public class AdmProtocolDecoder extends BaseProtocolDecoder { position.setProtocol(getProtocolName()); position.setDeviceId(deviceSession.getDeviceId()); - buf.readUnsignedByte(); // firmware version + position.set(Position.KEY_VERSION_FW, buf.readUnsignedByte()); // firmware version buf.readUnsignedShort(); // index position.set(Position.KEY_STATUS, buf.readUnsignedShort()); @@ -77,7 +77,7 @@ public class AdmProtocolDecoder extends BaseProtocolDecoder { position.setCourse(buf.readUnsignedShort() * 0.1); position.setSpeed(UnitsConverter.knotsFromKph(buf.readUnsignedShort() * 0.1)); - buf.readUnsignedByte(); // acceleration + position.set(Position.KEY_ACCELERATION, buf.readUnsignedByte()); // acceleration position.setAltitude(buf.readUnsignedShort()); |