From b2126cf6afe6203ea98fe99a1eeb303c62b8e909 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 12 Jul 2024 08:13:31 -0700 Subject: Decode Ulbotech fuel sensors --- src/main/java/org/traccar/protocol/UlbotechProtocolDecoder.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/java') 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); } } -- cgit v1.2.3