aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorjon-stumpf <jon.stumpf@gmail.com>2017-02-25 22:04:22 -0500
committerjon-stumpf <jon.stumpf@gmail.com>2017-03-04 16:27:02 -0500
commit78139d12edc233faed0867b653bd0d2af5b49806 (patch)
treed3f50fd519afc9e6b0f9668b66db7b30887e1ee9 /src/org/traccar
parentc5053137dddb66661a783be68bbc3f69471df4f4 (diff)
downloadtraccar-server-78139d12edc233faed0867b653bd0d2af5b49806.tar.gz
traccar-server-78139d12edc233faed0867b653bd0d2af5b49806.tar.bz2
traccar-server-78139d12edc233faed0867b653bd0d2af5b49806.zip
Added comments as per the documentation;
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/protocol/RitiProtocolDecoder.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/org/traccar/protocol/RitiProtocolDecoder.java b/src/org/traccar/protocol/RitiProtocolDecoder.java
index 087d4e63b..26aeb40f3 100644
--- a/src/org/traccar/protocol/RitiProtocolDecoder.java
+++ b/src/org/traccar/protocol/RitiProtocolDecoder.java
@@ -67,14 +67,14 @@ public class RitiProtocolDecoder extends BaseProtocolDecoder {
position.set("mode", buf.readUnsignedByte());
position.set("command", buf.readUnsignedByte());
- position.set(Position.KEY_POWER, buf.readUnsignedShort());
+ position.set(Position.KEY_POWER, buf.readUnsignedShort()); // mV
- buf.skipBytes(5);
- buf.readUnsignedShort();
- buf.readUnsignedShort();
+ buf.skipBytes(5); // status
+ buf.readUnsignedShort(); // idleCount
+ buf.readUnsignedShort(); // idleTime in seconds
- position.set(Position.KEY_DISTANCE, buf.readUnsignedInt());
- position.set(Position.KEY_ODOMETER_TRIP, buf.readUnsignedInt());
+ position.set(Position.KEY_DISTANCE, buf.readUnsignedInt()); // meters
+ position.set(Position.KEY_ODOMETER_TRIP, buf.readUnsignedInt()); // meters
// Parse GPRMC
int end = buf.indexOf(buf.readerIndex(), buf.writerIndex(), (byte) '*');