GDI
This commit is contained in:
parent
b4e3927a92
commit
67789a4b2f
|
@ -9,6 +9,7 @@
|
|||
#include "vw_b6.h"
|
||||
#include "custom_engine.h"
|
||||
#include "table_helper.h"
|
||||
#include "map.h"
|
||||
|
||||
EXTERN_CONFIG;
|
||||
|
||||
|
@ -37,8 +38,19 @@ void setVwPassatB6(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
|||
|
||||
// "26 - AN volt 2"
|
||||
engineConfiguration->highPressureFuel.hwChannel = EFI_ADC_6;
|
||||
// todo: calibration
|
||||
engineConfiguration->highPressureFuel.v1 = 0.5; /* volts */;
|
||||
engineConfiguration->highPressureFuel.value1 = 0.5;
|
||||
engineConfiguration->highPressureFuel.v2 = 4.5; /* volts */;
|
||||
engineConfiguration->highPressureFuel.value2 = 4.5;
|
||||
|
||||
// "19 - AN volt 4"
|
||||
engineConfiguration->lowPressureFuel.hwChannel = EFI_ADC_12;
|
||||
engineConfiguration->lowPressureFuel.v1 = 0.5; /* volts */;
|
||||
engineConfiguration->lowPressureFuel.value1 = PSI2KPA(0);
|
||||
engineConfiguration->lowPressureFuel.v2 = 4.5; /* volts */;
|
||||
// todo: what's the proper calibration of this Bosch sensor? is it really 200psi?
|
||||
engineConfiguration->lowPressureFuel.value2 = PSI2KPA(200);
|
||||
|
||||
CONFIG(isSdCardEnabled) = false;
|
||||
|
||||
|
|
|
@ -28,8 +28,10 @@ float validateMap(float mapKPa DECLARE_ENGINE_PARAMETER_SUFFIX);
|
|||
|
||||
#define KPA_PER_PSI 6.89475728f
|
||||
|
||||
#define PSI2KPA(psi) (KPA_PER_PSI * (psi))
|
||||
|
||||
// PSI (relative to atmosphere) to kPa (relative to vacuum)
|
||||
#define PSI2KPA(psi) (101.32500411216164f + KPA_PER_PSI * (psi))
|
||||
#define PSI2KPA_RELATIVE(psi) (101.32500411216164f + PSI2KPA(psi))
|
||||
|
||||
#define INHG2KPA(inhg) ((inhg) * 3.386375)
|
||||
#define KPA2INHG(kpa) ((kpa) / 3.386375)
|
||||
|
|
Loading…
Reference in New Issue