From 533577924ef9db6811976b31db6a8379f6b13b09 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 6 Jun 2023 18:30:39 +1000 Subject: [PATCH] AP_Scripting: fixed temperatures for Halo6000 driver temps are offset by 40 deg C --- libraries/AP_Scripting/drivers/EFI_Halo6000.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_Scripting/drivers/EFI_Halo6000.lua b/libraries/AP_Scripting/drivers/EFI_Halo6000.lua index 20c7c94504..dc6cd075b1 100644 --- a/libraries/AP_Scripting/drivers/EFI_Halo6000.lua +++ b/libraries/AP_Scripting/drivers/EFI_Halo6000.lua @@ -174,8 +174,8 @@ local function engine_control() last_rpm_t = get_time_sec() throttle_pos = get_uint16(frame, 2)*0.1 fuel_pct = get_uint8(frame, 4)*0.5 - cyl_temp = get_uint8(frame, 5) - cool_temp = get_uint8(frame, 6) + cyl_temp = get_uint8(frame, 5) - 40 + cool_temp = get_uint8(frame, 6) - 40 elseif id == 0x1c2 then -- 20Hz telem2 out_volt = get_uint16(frame, 0)*0.2