From 17c6e3eb0debb647b71669f900a2db0ab618ccef Mon Sep 17 00:00:00 2001 From: Pradeep Date: Mon, 5 Feb 2024 19:17:56 -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..e6a2b1bc60 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_temperature)); + gcs().send_named_float("EGT2", KELVIN_TO_C(state.cylinder_status.exhaust_gas_temperature)); +#endif } // get a copy of state structure