Skip to content

Commit

Permalink
AP_EFI: fix ECYL log message
Browse files Browse the repository at this point in the history
- Convert temperatures Celsius to match the docs
- Fix format specifier for CHT2
  • Loading branch information
robertlong13 committed Sep 11, 2024
1 parent 2b903d2 commit 6776d8d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions libraries/AP_EFI/AP_EFI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,16 +252,16 @@ void AP_EFI::log_status(void)
"TimeUS,Inst,IgnT,InjT,CHT,EGT,Lambda,CHT2,EGT2,IDX",
"s#dsOO-OO-",
"F-0C000000",
"QBfffffBff",
"QBffffffff",
AP_HAL::micros64(),
0,
state.cylinder_status.ignition_timing_deg,
state.cylinder_status.injection_time_ms,
state.cylinder_status.cylinder_head_temperature,
state.cylinder_status.exhaust_gas_temperature,
KELVIN_TO_C(state.cylinder_status.cylinder_head_temperature),
KELVIN_TO_C(state.cylinder_status.exhaust_gas_temperature),
state.cylinder_status.lambda_coefficient,
state.cylinder_status.cylinder_head_temperature2,
state.cylinder_status.exhaust_gas_temperature2,
KELVIN_TO_C(state.cylinder_status.cylinder_head_temperature2),
KELVIN_TO_C(state.cylinder_status.exhaust_gas_temperature2),
state.ecu_index);
}
#endif // LOGGING_ENABLED
Expand Down

0 comments on commit 6776d8d

Please sign in to comment.