auto-sync

This commit is contained in:
rusEfi 2015-01-15 22:04:00 -06:00
parent c2780a3737
commit f1cb8ee763
3 changed files with 10 additions and 5 deletions

View File

@ -377,8 +377,8 @@ void setDefaultConfiguration(engine_configuration_s *engineConfiguration, board_
for (int i = 0; i < LE_COMMAND_COUNT; i++) {
boardConfiguration->fsioPins[i] = GPIO_UNASSIGNED;
boardConfiguration->le_formulas[i][0] = 0;
engineConfiguration->fsioInpus[i] = GPIO_UNASSIGNED;
engineConfiguration->fsioInpusMode[i] = PI_DEFAULT;
engineConfiguration->fsioInputs[i] = GPIO_UNASSIGNED;
engineConfiguration->fsioInputModes[i] = PI_DEFAULT;
}
for (int i = 0; i < JOYSTICK_PIN_COUNT; i++) {
boardConfiguration->joystickPins[i] = GPIO_UNASSIGNED;
@ -442,6 +442,9 @@ void setDefaultConfiguration(engine_configuration_s *engineConfiguration, board_
setFrankenstein_01_LCD(boardConfiguration);
strcpy(engineConfiguration->timingMultiplier, "1");
strcpy(engineConfiguration->timingAdditive, "0");
engineConfiguration->hip9011SpiDevice = SPI_DEVICE_2;
engineConfiguration->isGpsEnabled = false;

View File

@ -648,8 +648,8 @@ typedef struct {
brain_pin_e clutchUpPin;
pin_input_mode_e clutchUpPinMode;
float hipThreshold;
brain_pin_e fsioInpus[LE_COMMAND_COUNT];
pin_input_mode_e fsioInpusMode[LE_COMMAND_COUNT];
brain_pin_e fsioInputs[LE_COMMAND_COUNT];
pin_input_mode_e fsioInputModes[LE_COMMAND_COUNT];
int unused3[149];
le_formula_t timingMultiplier;

View File

@ -394,9 +394,11 @@ void initFsioImpl(Logging *sharedLogger, Engine *engine) {
}
for (int i = 0; i < LE_COMMAND_COUNT; i++) {
brain_pin_e inputPin = engineConfiguration->fsioInpus[i];
brain_pin_e inputPin = engineConfiguration->fsioInputs[i];
if (inputPin != GPIO_UNASSIGNED) {
mySetPadMode2("FSIO input", inputPin,
getInputMode(engineConfiguration->fsioInputModes[i]));
}
}