diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-09-28 11:53:04 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-09-28 11:53:04 +1300 |
commit | 2a690606569f042b845da1f61b308698645ad3fc (patch) | |
tree | aa67caf5816d3d214d0a21b007e2db784e99f12e /src/org/traccar/protocol/Gl200ProtocolDecoder.java | |
parent | 9b08cbbca6a35862fbc33e48f5d876899954a17d (diff) | |
download | trackermap-server-2a690606569f042b845da1f61b308698645ad3fc.tar.gz trackermap-server-2a690606569f042b845da1f61b308698645ad3fc.tar.bz2 trackermap-server-2a690606569f042b845da1f61b308698645ad3fc.zip |
Decode OBD odometer value
Diffstat (limited to 'src/org/traccar/protocol/Gl200ProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/Gl200ProtocolDecoder.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/Gl200ProtocolDecoder.java b/src/org/traccar/protocol/Gl200ProtocolDecoder.java index a7cf1121b..61a0aed39 100644 --- a/src/org/traccar/protocol/Gl200ProtocolDecoder.java +++ b/src/org/traccar/protocol/Gl200ProtocolDecoder.java @@ -121,7 +121,7 @@ public class Gl200ProtocolDecoder extends BaseProtocolDecoder { // OBD position.set(Event.KEY_RPM, parser.group(index++)); - position.set(Event.KEY_SPEED, parser.group(index++)); + position.set(Event.KEY_OBD_SPEED, parser.group(index++)); position.set(Event.PREFIX_TEMP + 1, parser.group(index++)); position.set("fuel-consumption", parser.group(index++)); position.set("dtcs-cleared-distance", parser.group(index++)); @@ -130,7 +130,7 @@ public class Gl200ProtocolDecoder extends BaseProtocolDecoder { position.set("dtcs-codes", parser.group(index++)); position.set("throttle-position", parser.group(index++)); position.set(Event.KEY_FUEL, parser.group(index++)); - position.set("odb-odometer", parser.group(index++)); + position.set(Event.KEY_OBD_ODOMETER, parser.group(index++)); // Validity position.setValid(Integer.valueOf(parser.group(index++)) < 20); |