aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-07-12 08:13:31 -0700
committerAnton Tananaev <anton@traccar.org>2024-07-12 08:13:31 -0700
commitb2126cf6afe6203ea98fe99a1eeb303c62b8e909 (patch)
tree4aa5fd98124dca09e289bef905b59e096604a601 /src/main
parent12a6b088cc478f1b2aff363534c87ca0a6a27815 (diff)
downloadtrackermap-server-b2126cf6afe6203ea98fe99a1eeb303c62b8e909.tar.gz
trackermap-server-b2126cf6afe6203ea98fe99a1eeb303c62b8e909.tar.bz2
trackermap-server-b2126cf6afe6203ea98fe99a1eeb303c62b8e909.zip
Decode Ulbotech fuel sensors
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/protocol/UlbotechProtocolDecoder.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/UlbotechProtocolDecoder.java b/src/main/java/org/traccar/protocol/UlbotechProtocolDecoder.java
index 53eec55d0..edcf46c2e 100644
--- a/src/main/java/org/traccar/protocol/UlbotechProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/UlbotechProtocolDecoder.java
@@ -151,6 +151,7 @@ public class UlbotechProtocolDecoder extends BaseProtocolDecoder {
case 1 -> position.set(Position.PREFIX_TEMP + 1, value * (125 + 55) / 4096.0 - 55);
case 2 -> position.set(Position.KEY_BATTERY, value * (100 + 10) / 4096.0 - 10);
case 3 -> position.set(Position.PREFIX_ADC + 1, value * (100 + 10) / 4096.0 - 10);
+ case 5, 6, 7, 8, 9 -> position.set("fuel" + (id - 4), value * 2000 / 4096.0);
default -> position.set(Position.PREFIX_IO + id, value);
}
}