auto-sync

This commit is contained in:
rusEfi 2015-03-28 21:10:34 -05:00
parent 79fe180150
commit b2a3ce37c5
3 changed files with 7 additions and 4 deletions

View File

@ -390,7 +390,7 @@ void setDodgeNeonNGCEngineConfiguration(DECLARE_ENGINE_PARAMETER_F) {
engineConfiguration->algorithm = LM_SPEED_DENSITY;
boardConfiguration->alternatorControlPin = GPIOD_5;
engineConfiguration->alternatorControlPFactor = 30;
engineConfiguration->alternatorControlPFactor = 22;
// engineConfiguration->isCanEnabled = true;
boardConfiguration->canTxPin = GPIOB_6;

View File

@ -70,6 +70,8 @@ static void applyAlternatorPinState(PwmConfig *state, int stateIndex) {
static void showAltInfo(void) {
scheduleMsg(logger, "atl=%s", boolToString(engineConfiguration->isAlternatorControlEnabled));
scheduleMsg(logger, "p=%f/i=%f/d=%f", engineConfiguration->alternatorControlPFactor,
0, 0); // todo: i & d
scheduleMsg(logger, "vbatt=%f/duty=%f", getVBatt(engineConfiguration), currentAltDuty);
}

View File

@ -36,7 +36,7 @@
#if EFI_HIP_9011 || defined(__DOXYGEN__)
static OutputPin intHold;
static NamedOutputPin intHold;
static OutputPin hipCs;
extern pin_output_mode_e DEFAULT_OUTPUT;
@ -140,7 +140,7 @@ static void startIntegration(void) {
* until we are done integrating
*/
state = IS_INTEGRATING;
intHold.setValue(true);
turnPinHigh(&intHold);
}
}
@ -150,7 +150,7 @@ static void endIntegration(void) {
* engine cycle
*/
if (state == IS_INTEGRATING) {
intHold.setValue(false);
turnPinLow(&intHold);
state = WAITING_FOR_ADC_TO_SKIP;
}
}
@ -235,6 +235,7 @@ void initHip9011(Logging *sharedLogger) {
spicfg.ssport = getHwPort(boardConfiguration->hip9011CsPin);
spicfg.sspad = getHwPin(boardConfiguration->hip9011CsPin);
intHold.name = "HIP";
outputPinRegisterExt2("hip int/hold", &intHold, boardConfiguration->hip9011IntHoldPin, &DEFAULT_OUTPUT);
outputPinRegisterExt2("hip CS", &hipCs, boardConfiguration->hip9011CsPin, &DEFAULT_OUTPUT);