AP_Scripting: support 2nd cylinder in EFI

This commit is contained in:
Andrew Tridgell 2023-11-10 13:48:58 +11:00
parent c5eab29f5e
commit 3e0e32a409
2 changed files with 18 additions and 0 deletions

View File

@ -287,6 +287,14 @@ function Cylinder_Status_ud:exhaust_gas_temperature() end
---@param value number
function Cylinder_Status_ud:exhaust_gas_temperature(value) end
-- get field
---@return number
function Cylinder_Status_ud:exhaust_gas_temperature2() end
-- set field
---@param value number
function Cylinder_Status_ud:exhaust_gas_temperature2(value) end
-- get field
---@return number
function Cylinder_Status_ud:cylinder_head_temperature() end
@ -295,6 +303,14 @@ function Cylinder_Status_ud:cylinder_head_temperature() end
---@param value number
function Cylinder_Status_ud:cylinder_head_temperature(value) end
-- get field
---@return number
function Cylinder_Status_ud:cylinder_head_temperature2() end
-- set field
---@param value number
function Cylinder_Status_ud:cylinder_head_temperature2(value) end
-- get field
---@return number
function Cylinder_Status_ud:injection_time_ms() end

View File

@ -726,7 +726,9 @@ userdata Cylinder_Status depends (AP_EFI_SCRIPTING_ENABLED == 1)
userdata Cylinder_Status field ignition_timing_deg float'skip_check read write
userdata Cylinder_Status field injection_time_ms float'skip_check read write
userdata Cylinder_Status field cylinder_head_temperature float'skip_check read write
userdata Cylinder_Status field cylinder_head_temperature2 float'skip_check read write
userdata Cylinder_Status field exhaust_gas_temperature float'skip_check read write
userdata Cylinder_Status field exhaust_gas_temperature2 float'skip_check read write
userdata Cylinder_Status field lambda_coefficient float'skip_check read write
userdata EFI_State depends (AP_EFI_SCRIPTING_ENABLED == 1)