From 27c605fc6fb1e4cf71ae1ab800ef47fd06ca3af7 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 16 Jun 2017 00:35:48 +1200 Subject: Add power load for GPS103 OBD --- src/org/traccar/protocol/Gps103ProtocolDecoder.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/org/traccar/protocol') diff --git a/src/org/traccar/protocol/Gps103ProtocolDecoder.java b/src/org/traccar/protocol/Gps103ProtocolDecoder.java index 2b546bb26..ec8871865 100644 --- a/src/org/traccar/protocol/Gps103ProtocolDecoder.java +++ b/src/org/traccar/protocol/Gps103ProtocolDecoder.java @@ -92,7 +92,7 @@ public class Gps103ProtocolDecoder extends BaseProtocolDecoder { .number("(d+.d+)?,") // fuel average .number("(d+)?,") // hours .number("(d+),") // speed - .number("d+.?d*%,") // power load + .number("(d+.?d*%),") // power load .number("(?:([-+]?d+)|[-+]?),") // temperature .number("(d+.?d*%),") // throttle .number("(d+),") // rpm @@ -211,6 +211,7 @@ public class Gps103ProtocolDecoder extends BaseProtocolDecoder { position.set(Position.KEY_FUEL_CONSUMPTION, parser.nextDouble(0)); position.set(Position.KEY_HOURS, parser.nextInt()); position.set(Position.KEY_OBD_SPEED, parser.nextInt(0)); + position.set("powerLoad", parser.next()); position.set(Position.PREFIX_TEMP + 1, parser.nextInt()); position.set(Position.KEY_THROTTLE, parser.next()); position.set(Position.KEY_RPM, parser.nextInt(0)); -- cgit v1.2.3