progress or maybe even a fix of logging?
This commit is contained in:
parent
733f9b4659
commit
67055c69bf
|
@ -324,13 +324,13 @@ void Engine::updateSwitchInputs() {
|
||||||
acController.acSwitchLastChangeTimeMs = US2MS(getTimeNowUs());
|
acController.acSwitchLastChangeTimeMs = US2MS(getTimeNowUs());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
engine->clutchUpState = getClutchUpState();
|
engine->engineState.clutchUpState = getClutchUpState();
|
||||||
|
|
||||||
if (isBrainPinValid(engineConfiguration->throttlePedalUpPin)) {
|
if (isBrainPinValid(engineConfiguration->throttlePedalUpPin)) {
|
||||||
engine->module<IdleController>().unmock().throttlePedalUpState = efiReadPin(engineConfiguration->throttlePedalUpPin);
|
engine->module<IdleController>().unmock().throttlePedalUpState = efiReadPin(engineConfiguration->throttlePedalUpPin);
|
||||||
}
|
}
|
||||||
|
|
||||||
engine->brakePedalState = getBrakePedalState();
|
engine->engineState.brakePedalState = getBrakePedalState();
|
||||||
|
|
||||||
#endif // EFI_GPIO_HARDWARE
|
#endif // EFI_GPIO_HARDWARE
|
||||||
}
|
}
|
||||||
|
|
|
@ -356,9 +356,6 @@ public:
|
||||||
void updateSwitchInputs();
|
void updateSwitchInputs();
|
||||||
void updateTriggerWaveform();
|
void updateTriggerWaveform();
|
||||||
|
|
||||||
bool clutchUpState = false;
|
|
||||||
bool brakePedalState = false;
|
|
||||||
|
|
||||||
bool isRunningPwmTest = false;
|
bool isRunningPwmTest = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -286,8 +286,8 @@ static int lua_getDigital(lua_State* l) {
|
||||||
|
|
||||||
switch (idx) {
|
switch (idx) {
|
||||||
case 0: state = engine->engineState.clutchDownState; break;
|
case 0: state = engine->engineState.clutchDownState; break;
|
||||||
case 1: state = engine->clutchUpState; break;
|
case 1: state = engine->engineState.clutchUpState; break;
|
||||||
case 2: state = engine->brakePedalState; break;
|
case 2: state = engine->engineState.brakePedalState; break;
|
||||||
case 3: state = engine->module<AcController>().unmock().acButtonState; break;
|
case 3: state = engine->module<AcController>().unmock().acButtonState; break;
|
||||||
default:
|
default:
|
||||||
// Return nil to indicate invalid parameter
|
// Return nil to indicate invalid parameter
|
||||||
|
|
|
@ -129,7 +129,7 @@ void printConfiguration(const engine_configuration_s *engineConfiguration) {
|
||||||
boolToString(engineConfiguration->isCylinderCleanupEnabled));
|
boolToString(engineConfiguration->isCylinderCleanupEnabled));
|
||||||
|
|
||||||
efiPrintf("clutchUp@%s: %s", hwPortname(engineConfiguration->clutchUpPin),
|
efiPrintf("clutchUp@%s: %s", hwPortname(engineConfiguration->clutchUpPin),
|
||||||
boolToString(engine->clutchUpState));
|
boolToString(engine->engineState.clutchUpState));
|
||||||
efiPrintf("clutchDown@%s: %s", hwPortname(engineConfiguration->clutchDownPin),
|
efiPrintf("clutchDown@%s: %s", hwPortname(engineConfiguration->clutchDownPin),
|
||||||
boolToString(engine->engineState.clutchDownState));
|
boolToString(engine->engineState.clutchDownState));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue