aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYuriy Piskarev <yuriy.piskarev@gmail.com>2023-09-29 22:27:21 +0300
committerYuriy Piskarev <yuriy.piskarev@gmail.com>2023-09-29 22:27:21 +0300
commit8edfd96b0e14df98b817ed1b4f8edab77562d632 (patch)
tree60780d4c3670858338984cc05d5a66fe91120d9d /src
parentcd179377a28b5d8e09e4f7304f6f5a03a6a05de2 (diff)
downloadtrackermap-server-8edfd96b0e14df98b817ed1b4f8edab77562d632.tar.gz
trackermap-server-8edfd96b0e14df98b817ed1b4f8edab77562d632.tar.bz2
trackermap-server-8edfd96b0e14df98b817ed1b4f8edab77562d632.zip
minor fixes:
- field 54 rename; - field 53, 66 corrections.
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/traccar/protocol/NavtelecomProtocolDecoder.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/org/traccar/protocol/NavtelecomProtocolDecoder.java b/src/main/java/org/traccar/protocol/NavtelecomProtocolDecoder.java
index 2dca220ed..0d085c871 100644
--- a/src/main/java/org/traccar/protocol/NavtelecomProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/NavtelecomProtocolDecoder.java
@@ -315,13 +315,13 @@ public class NavtelecomProtocolDecoder extends BaseProtocolDecoder {
if (BitUtil.check(value, 15)) {
position.set("obdFuelLevel", BitUtil.to(value, 14));
} else {
- position.set("obdFuel", BitUtil.to(value, 14) / 10.0);
+ position.set("obdFuel", BitUtil.to(value, 14) * 0.1);
}
}
break;
case 54:
double dValue = buf.readFloatLE() * 0.5;
- position.set(Position.KEY_FUEL_USED, (dValue >= 0) ? dValue : null);
+ position.set("fuelUsed", (dValue >= 0) ? dValue : null);
break;
case 55:
value = buf.readUnsignedShortLE();
@@ -360,7 +360,7 @@ public class NavtelecomProtocolDecoder extends BaseProtocolDecoder {
if (BitUtil.check(value, 15)) {
position.set("obdAdBlueLevel", BitUtil.to(value, 14));
} else {
- position.set("obdAdBlue", BitUtil.to(value, 14) / 10.0);
+ position.set("obdAdBlue", BitUtil.to(value, 14) * 0.1);
}
}
break;