Browse Source

AP_EFI: Correct a bad conversion from Kelvin to Celsius

(was off by 0.15 degrees)
c415-sdk
Michael du Breuil 4 years ago committed by Andrew Tridgell
parent
commit
15fd8480f8
  1. 4
      libraries/AP_EFI/AP_EFI.cpp

4
libraries/AP_EFI/AP_EFI.cpp

@ -225,8 +225,8 @@ void AP_EFI::send_mavlink_status(mavlink_channel_t chan) @@ -225,8 +225,8 @@ void AP_EFI::send_mavlink_status(mavlink_channel_t chan)
state.spark_dwell_time_ms,
state.atmospheric_pressure_kpa,
state.intake_manifold_pressure_kpa,
(state.intake_manifold_temperature - 273.0f),
(state.cylinder_status[0].cylinder_head_temperature - 273.0f),
(state.intake_manifold_temperature - C_TO_KELVIN),
(state.cylinder_status[0].cylinder_head_temperature - C_TO_KELVIN),
state.cylinder_status[0].ignition_timing_deg,
state.cylinder_status[0].injection_time_ms,
0, 0, 0);

Loading…
Cancel
Save