Skip to content

Commit

Permalink
AP_Scripting: added more telemetry for INF Inject
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge committed Jun 1, 2024
1 parent a2421c4 commit 784bdc1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion libraries/AP_Scripting/drivers/INF_Inject.lua
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,8 @@ local function check_input()

gcs:send_named_float('VOL_SRV', state.vol_svr)
gcs:send_named_float('VOL_PUMP', state.vol_pump)
gcs:send_named_float('AMP_PUMP', state.amp_pump)
gcs:send_named_float('PWM_OUT2', state.PWM_OUT2)
gcs:send_named_float('INF_ETEMP', state.tmp_env)
gcs:send_named_float('INF_TEMP1', state.tmp0)
gcs:send_named_float('INF_TEMP2', state.tmp1)
Expand Down Expand Up @@ -361,7 +363,11 @@ end
send ignition commands
--]]
local function update_ignition()
local sw_pos = rc:get_aux_cached(EFI_INF_IGN_AUX:get())
local aux_fn = EFI_INF_IGN_AUX:get()
if not aux_fn then
return
end
local sw_pos = rc:get_aux_cached(aux_fn)
if not sw_pos then
return
end
Expand Down

0 comments on commit 784bdc1

Please sign in to comment.