fan2 bench
This commit is contained in:
parent
0d264916bb
commit
839539abc4
|
@ -159,6 +159,8 @@ void setBoardDefaultConfiguration(void) {
|
||||||
engineConfiguration->fuelPumpPin = GPIOG_2; // OUT_IO9
|
engineConfiguration->fuelPumpPin = GPIOG_2; // OUT_IO9
|
||||||
engineConfiguration->idle.solenoidPin = GPIOD_14; // OUT_PWM5
|
engineConfiguration->idle.solenoidPin = GPIOD_14; // OUT_PWM5
|
||||||
engineConfiguration->fanPin = GPIOD_12; // OUT_PWM8
|
engineConfiguration->fanPin = GPIOD_12; // OUT_PWM8
|
||||||
|
engineConfiguration->fan2Pin = GPIOD_9;
|
||||||
|
engineConfiguration->enableFan2WithAc = true;
|
||||||
engineConfiguration->mainRelayPin = GPIOI_2; // OUT_LOW3
|
engineConfiguration->mainRelayPin = GPIOI_2; // OUT_LOW3
|
||||||
|
|
||||||
// "required" hardware is done - set some reasonable defaults
|
// "required" hardware is done - set some reasonable defaults
|
||||||
|
|
|
@ -202,6 +202,10 @@ void fanBench(void) {
|
||||||
fanBenchExt("3000");
|
fanBenchExt("3000");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void fan2Bench(void) {
|
||||||
|
pinbench("0", "3000", "100", "1", &enginePins.fanRelay2, CONFIG(fan2Pin));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* we are blinking for 16 seconds so that one can click the button and walk around to see the light blinking
|
* we are blinking for 16 seconds so that one can click the button and walk around to see the light blinking
|
||||||
*/
|
*/
|
||||||
|
@ -318,6 +322,9 @@ static void handleBenchCategory(uint16_t index) {
|
||||||
case CMD_TS_BENCH_FAN_RELAY:
|
case CMD_TS_BENCH_FAN_RELAY:
|
||||||
fanBench();
|
fanBench();
|
||||||
return;
|
return;
|
||||||
|
case CMD_TS_BENCH_AC_FAN_RELAY:
|
||||||
|
fan2Bench();
|
||||||
|
return;
|
||||||
default:
|
default:
|
||||||
firmwareError(OBD_PCM_Processor_Fault, "Unexpected bench function %d", index);
|
firmwareError(OBD_PCM_Processor_Fault, "Unexpected bench function %d", index);
|
||||||
}
|
}
|
||||||
|
@ -495,9 +502,10 @@ void executeTSCommand(uint16_t subsystem, uint16_t index) {
|
||||||
|
|
||||||
void initBenchTest() {
|
void initBenchTest() {
|
||||||
addConsoleAction("fuelpumpbench", fuelPumpBench);
|
addConsoleAction("fuelpumpbench", fuelPumpBench);
|
||||||
addConsoleAction("acrelaybench", acRelayBench);
|
addConsoleAction(CMD_AC_RELAY_BENCH, acRelayBench);
|
||||||
addConsoleActionS("fuelpumpbench2", fuelPumpBenchExt);
|
addConsoleActionS("fuelpumpbench2", fuelPumpBenchExt);
|
||||||
addConsoleAction("fanbench", fanBench);
|
addConsoleAction(CMD_FAN_BENCH, fanBench);
|
||||||
|
addConsoleAction(CMD_FAN2_BENCH, fan2Bench);
|
||||||
addConsoleAction("mainrelaybench", mainRelayBench);
|
addConsoleAction("mainrelaybench", mainRelayBench);
|
||||||
addConsoleActionS("fanbench2", fanBenchExt);
|
addConsoleActionS("fanbench2", fanBenchExt);
|
||||||
|
|
||||||
|
@ -509,7 +517,7 @@ void initBenchTest() {
|
||||||
addConsoleAction(CMD_STARTER_BENCH, starterRelayBench);
|
addConsoleAction(CMD_STARTER_BENCH, starterRelayBench);
|
||||||
addConsoleAction(CMD_MIL_BENCH, milBench);
|
addConsoleAction(CMD_MIL_BENCH, milBench);
|
||||||
addConsoleActionSSS(CMD_FUEL_BENCH, fuelbench);
|
addConsoleActionSSS(CMD_FUEL_BENCH, fuelbench);
|
||||||
addConsoleActionSSS("sparkbench", sparkbench);
|
addConsoleActionSSS(CMD_SPARK_BENCH, sparkbench);
|
||||||
addConsoleAction(CMD_HPFP_BENCH, hpfpValveBench);
|
addConsoleAction(CMD_HPFP_BENCH, hpfpValveBench);
|
||||||
|
|
||||||
addConsoleActionSSSSS("fuelbench2", fuelbench2);
|
addConsoleActionSSSSS("fuelbench2", fuelbench2);
|
||||||
|
|
Loading…
Reference in New Issue