AP_Scripting: fixed temperatures for Halo6000 driver

temps are offset by 40 deg C
This commit is contained in:
Andrew Tridgell 2023-06-06 18:30:39 +10:00
parent d23d808f07
commit 533577924e
1 changed files with 2 additions and 2 deletions

View File

@ -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