diff --git a/firmware/controllers/core/fsio_impl.cpp b/firmware/controllers/core/fsio_impl.cpp index 47ab64cb41..64477898f1 100644 --- a/firmware/controllers/core/fsio_impl.cpp +++ b/firmware/controllers/core/fsio_impl.cpp @@ -224,7 +224,7 @@ static void setPinState(const char * msg, OutputPin *pin, LEElement *element, En if (value != pin->getLogicValue()) { if (isRunningBenchTest()) return; // let's not mess with bench testing - scheduleMsg(logger, "setting %s %s", msg, boolToString(value)); + scheduleMsg(logger, "setPin %s %s", msg, boolToString(value)); pin->setValue(value); } } @@ -347,9 +347,9 @@ void runFsio(void) { setPinState("A/C", &enginePins.acRelay, acRelayLogic, engine); } - if (boardConfiguration->alternatorControlPin != GPIO_UNASSIGNED) { - setPinState("alternator", &enginePins.alternatorField, alternatorLogic, engine); - } +// if (boardConfiguration->alternatorControlPin != GPIO_UNASSIGNED) { +// setPinState("alternator", &enginePins.alternatorField, alternatorLogic, engine); +// } if (boardConfiguration->fanPin != GPIO_UNASSIGNED) { setPinState("fan", &enginePins.fanRelay, radiatorFanLogic, engine); diff --git a/firmware/controllers/system/efiGpio.h b/firmware/controllers/system/efiGpio.h index 813e394414..371d58355e 100644 --- a/firmware/controllers/system/efiGpio.h +++ b/firmware/controllers/system/efiGpio.h @@ -48,7 +48,7 @@ typedef struct { OutputPin acRelay; OutputPin fuelPumpRelay; OutputPin o2heater; - OutputPin alternatorField; +// OutputPin alternatorField; OutputPin errorLedPin; NamedOutputPin injectors[ENGINE_CHANNEL_COUNT]; diff --git a/unit_tests/test_idle_controller.cpp b/unit_tests/test_idle_controller.cpp index 9124563ad0..209a6c513e 100644 --- a/unit_tests/test_idle_controller.cpp +++ b/unit_tests/test_idle_controller.cpp @@ -45,4 +45,8 @@ void testPidController(void) { assertEquals(90, pid.getValue(14, 12, 0.1)); + assertEquals(10, pid.getValue(14, 16, 0.1)); + assertEquals(10, pid.getValue(14, 16, 1)); + + }