auto-sync
This commit is contained in:
parent
574e72bc94
commit
d605497615
|
@ -8,6 +8,7 @@
|
||||||
#include "interpolation.h"
|
#include "interpolation.h"
|
||||||
#include "error_handling.h"
|
#include "error_handling.h"
|
||||||
#include "map.h"
|
#include "map.h"
|
||||||
|
#include "engine_controller.h"
|
||||||
|
|
||||||
#if EFI_PROD_CODE || defined(__DOXYGEN__)
|
#if EFI_PROD_CODE || defined(__DOXYGEN__)
|
||||||
#include "digital_input_hw.h"
|
#include "digital_input_hw.h"
|
||||||
|
@ -187,6 +188,7 @@ static void printMAPInfo(void) {
|
||||||
#if EFI_ANALOG_SENSORS || defined(__DOXYGEN__)
|
#if EFI_ANALOG_SENSORS || defined(__DOXYGEN__)
|
||||||
scheduleMsg(logger, "instant value=%fkPa", getRawMap());
|
scheduleMsg(logger, "instant value=%fkPa", getRawMap());
|
||||||
|
|
||||||
|
|
||||||
if (engineConfiguration->hasFrequencyReportingMapSensor) {
|
if (engineConfiguration->hasFrequencyReportingMapSensor) {
|
||||||
scheduleMsg(logger, "instant value=%fHz @ %s", mapFreq, hwPortname(boardConfiguration->frequencyReportingMapInputPin));
|
scheduleMsg(logger, "instant value=%fHz @ %s", mapFreq, hwPortname(boardConfiguration->frequencyReportingMapInputPin));
|
||||||
} else {
|
} else {
|
||||||
|
@ -194,7 +196,11 @@ static void printMAPInfo(void) {
|
||||||
getAir_pressure_sensor_type_e(engineConfiguration->map.sensor.type),
|
getAir_pressure_sensor_type_e(engineConfiguration->map.sensor.type),
|
||||||
getMap());
|
getMap());
|
||||||
|
|
||||||
scheduleMsg(logger, "MAP %fv", getVoltage("mapinfo", engineConfiguration->map.sensor.hwChannel));
|
adc_channel_e mapAdc = engineConfiguration->map.sensor.hwChannel;
|
||||||
|
static char pinNameBuffer[16];
|
||||||
|
|
||||||
|
scheduleMsg(logger, "MAP %fv @%s", getVoltage("mapinfo", mapAdc),
|
||||||
|
getPinNameByAdcChannel("map", mapAdc, pinNameBuffer));
|
||||||
if (engineConfiguration->map.sensor.type == MT_CUSTOM) {
|
if (engineConfiguration->map.sensor.type == MT_CUSTOM) {
|
||||||
scheduleMsg(logger, "at %fv=%f at %fv=%f",
|
scheduleMsg(logger, "at %fv=%f at %fv=%f",
|
||||||
engineConfiguration->mapLowValueVoltage,
|
engineConfiguration->mapLowValueVoltage,
|
||||||
|
|
|
@ -405,12 +405,10 @@ static void printTPSInfo(void) {
|
||||||
scheduleMsg(&logger, "NO TPS SENSOR");
|
scheduleMsg(&logger, "NO TPS SENSOR");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
static char pinNameBuffer[16];
|
||||||
|
|
||||||
ioportid_t port = getAdcChannelPort("tps", engineConfiguration->tpsAdcChannel);
|
scheduleMsg(&logger, "tps min (closed) %d/max (full) %d v=%f @%s", engineConfiguration->tpsMin, engineConfiguration->tpsMax,
|
||||||
int pin = getAdcChannelPin(engineConfiguration->tpsAdcChannel);
|
getTPSVoltage(PASS_ENGINE_PARAMETER_F), getPinNameByAdcChannel("tps", engineConfiguration->tpsAdcChannel, pinNameBuffer));
|
||||||
|
|
||||||
scheduleMsg(&logger, "tps min (closed) %d/max (full) %d v=%f @%s%d", engineConfiguration->tpsMin, engineConfiguration->tpsMax,
|
|
||||||
getTPSVoltage(PASS_ENGINE_PARAMETER_F), portname(port), pin);
|
|
||||||
#endif /* EFI_PROD_CODE */
|
#endif /* EFI_PROD_CODE */
|
||||||
scheduleMsg(&logger, "current 10bit=%d value=%f rate=%f", getTPS12bitAdc() / TPS_TS_CONVERSION, getTPS(PASS_ENGINE_PARAMETER_F),
|
scheduleMsg(&logger, "current 10bit=%d value=%f rate=%f", getTPS12bitAdc() / TPS_TS_CONVERSION, getTPS(PASS_ENGINE_PARAMETER_F),
|
||||||
getTpsRateOfChange());
|
getTpsRateOfChange());
|
||||||
|
|
Loading…
Reference in New Issue