Skip to content

Commit

Permalink
AP_EFI : Addition of Engine Information over Mavlink
Browse files Browse the repository at this point in the history
 - CHT2 and EGT2
 - Remove CI build error
  • Loading branch information
Pradeep-Carbonix committed Feb 8, 2024
1 parent 85f8529 commit a8d88d9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libraries/AP_EFI/AP_EFI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a8d88d9

Please sign in to comment.