From a8d88d958c98ee54202e374f0b6175350a30d61c Mon Sep 17 00:00:00 2001 From: Pradeep Date: Wed, 7 Feb 2024 17:54:51 -0800 Subject: [PATCH] AP_EFI : Addition of Engine Information over Mavlink - CHT2 and EGT2 - Remove CI build error --- libraries/AP_EFI/AP_EFI.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libraries/AP_EFI/AP_EFI.cpp b/libraries/AP_EFI/AP_EFI.cpp index 0242493ed8..9338a50596 100644 --- a/libraries/AP_EFI/AP_EFI.cpp +++ b/libraries/AP_EFI/AP_EFI.cpp @@ -283,6 +283,11 @@ void AP_EFI::send_mavlink_status(mavlink_channel_t chan) state.pt_compensation, state.ignition_voltage ); +// TODO: Sending these values over mavlink is disabled for Periph.Should be included once te CI errors are resolved +#ifndef HAL_BUILD_AP_PERIPH + gcs().send_named_float("CHT2", KELVIN_TO_C(state.cylinder_status.cylinder_head_temperature2)); + gcs().send_named_float("EGT2", KELVIN_TO_C(state.cylinder_status.exhaust_gas_temperature2)); +#endif } // get a copy of state structure