etb_test_hw

This commit is contained in:
rusefi 2021-10-10 17:10:04 -04:00
parent fe69616859
commit 9b140e57a1
2 changed files with 13 additions and 2 deletions

View File

@ -942,7 +942,7 @@ void doInitElectronicThrottle(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
// this command is useful for real hardware test with known cheap hardware // this command is useful for real hardware test with known cheap hardware
addConsoleAction("etb_test_hw", [](){ addConsoleAction("etb_test_hw", [](){
setToyota89281_33010_pedal_position_sensor(PASS_CONFIG_PARAMETER_SIGNATURE); set18919_AM810_pedal_position_sensor(PASS_CONFIG_PARAMETER_SIGNATURE);
}); });
#endif /* EFI_PROD_CODE */ #endif /* EFI_PROD_CODE */
@ -1034,6 +1034,13 @@ void setEtbWastegatePosition(percent_t pos DECLARE_ENGINE_PARAMETER_SUFFIX) {
} }
} }
void set18919_AM810_pedal_position_sensor(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
engineConfiguration->throttlePedalUpVoltage = 0.1;
engineConfiguration->throttlePedalWOTVoltage = 4.5;
engineConfiguration->throttlePedalSecondaryUpVoltage = 0.1;
engineConfiguration->throttlePedalSecondaryWOTVoltage = 2.2;
}
void setToyota89281_33010_pedal_position_sensor(DECLARE_CONFIG_PARAMETER_SIGNATURE) { void setToyota89281_33010_pedal_position_sensor(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
engineConfiguration->throttlePedalUpVoltage = 0; engineConfiguration->throttlePedalUpVoltage = 0;
engineConfiguration->throttlePedalWOTVoltage = 4.1; engineConfiguration->throttlePedalWOTVoltage = 4.1;

View File

@ -16,9 +16,13 @@ void doInitElectronicThrottle(DECLARE_ENGINE_PARAMETER_SIGNATURE);
void setEtbIdlePosition(percent_t pos DECLARE_ENGINE_PARAMETER_SUFFIX); void setEtbIdlePosition(percent_t pos DECLARE_ENGINE_PARAMETER_SUFFIX);
void setEtbWastegatePosition(percent_t pos DECLARE_ENGINE_PARAMETER_SUFFIX); void setEtbWastegatePosition(percent_t pos DECLARE_ENGINE_PARAMETER_SUFFIX);
void setToyota89281_33010_pedal_position_sensor(DECLARE_CONFIG_PARAMETER_SIGNATURE);
void setHitachiEtbCalibration(DECLARE_CONFIG_PARAMETER_SIGNATURE); void setHitachiEtbCalibration(DECLARE_CONFIG_PARAMETER_SIGNATURE);
// these two sensors use same plug but have different calibrations and even rotate in different directions
void set18919_AM810_pedal_position_sensor(DECLARE_CONFIG_PARAMETER_SIGNATURE);
void setToyota89281_33010_pedal_position_sensor(DECLARE_CONFIG_PARAMETER_SIGNATURE);
void setDefaultEtbBiasCurve(DECLARE_CONFIG_PARAMETER_SIGNATURE); void setDefaultEtbBiasCurve(DECLARE_CONFIG_PARAMETER_SIGNATURE);
void setDefaultEtbParameters(DECLARE_CONFIG_PARAMETER_SIGNATURE); void setDefaultEtbParameters(DECLARE_CONFIG_PARAMETER_SIGNATURE);
void setBoschVNH2SP30Curve(DECLARE_CONFIG_PARAMETER_SIGNATURE); void setBoschVNH2SP30Curve(DECLARE_CONFIG_PARAMETER_SIGNATURE);