From 784bdc16ed82c4eee93095fb57ee49e8cf61942a Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 1 Jun 2024 12:29:03 +1000 Subject: [PATCH] AP_Scripting: added more telemetry for INF Inject --- libraries/AP_Scripting/drivers/INF_Inject.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libraries/AP_Scripting/drivers/INF_Inject.lua b/libraries/AP_Scripting/drivers/INF_Inject.lua index ef9fa609b1a5d7..eeedb7122cb997 100644 --- a/libraries/AP_Scripting/drivers/INF_Inject.lua +++ b/libraries/AP_Scripting/drivers/INF_Inject.lua @@ -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) @@ -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