Esempio n. 1
0
static void sparkbench2(const char *delayStr, const char *indexStr, const char * onTimeStr, const char *offTimeStr,
		const char *countStr) {
	int index = atoi(indexStr);
	brain_pin_e b = boardConfiguration->ignitionPins[index - 1];
	io_pin_e p = (io_pin_e) ((int) SPARKOUT_1_OUTPUT - 1 + index);
	pinbench(delayStr, onTimeStr, offTimeStr, countStr, p, b);
}
Esempio n. 2
0
static void fuelbench2(const char *delayStr, const char *indexStr, const char * onTimeStr, const char *offTimeStr,
		const char *countStr) {
	int index = atoi(indexStr);
	brain_pin_e b = boardConfiguration->injectionPins[index - 1];
	io_pin_e p = (io_pin_e) ((int) INJECTOR_1_OUTPUT - 1 + index);
	pinbench(delayStr, onTimeStr, offTimeStr, countStr, p, b);
}
Esempio n. 3
0
static void doRunSpark(int humanIndex, const char *delayStr, const char * onTimeStr, const char *offTimeStr,
		const char *countStr) {
	if (humanIndex < 1 || humanIndex > engineConfiguration->specs.cylindersCount) {
		scheduleMsg(logger, "Invalid index: %d", humanIndex);
		return;
	}
	brain_pin_e b = boardConfiguration->ignitionPins[humanIndex - 1];
	pinbench(delayStr, onTimeStr, offTimeStr, countStr, &enginePins.coils[humanIndex - 1], b);
}
Esempio n. 4
0
void fuelPumpBenchExt(const char *durationMs) {
	pinbench("0", durationMs, "100", "1", &enginePins.fuelPumpRelay, boardConfiguration->fuelPumpPin);
}
Esempio n. 5
0
void milBench(void) {
	pinbench("0", "3000", "100", "1", &checkEnginePin, boardConfiguration->malfunctionIndicatorPin);
}
Esempio n. 6
0
void fanBench(void) {
	pinbench("0", "3000", "100", "1", &enginePins.fanRelay, boardConfiguration->fanPin);
}