auto-sync
This commit is contained in:
parent
be6f14f6e9
commit
41e989551d
|
@ -209,6 +209,8 @@ public:
|
|||
*/
|
||||
int knockCount;
|
||||
|
||||
bool_t knockDebug;
|
||||
|
||||
efitimeus_t timeOfLastKnockEvent;
|
||||
|
||||
/**
|
||||
|
|
|
@ -839,6 +839,10 @@ static void enableOrDisable(const char *param, bool isEnabled) {
|
|||
boardConfiguration->isHip9011Enabled = isEnabled;
|
||||
} else if (strEqualCaseInsensitive(param, "altdebug")) {
|
||||
boardConfiguration->isVerboseAlternator = isEnabled;
|
||||
} else if (strEqualCaseInsensitive(param, "tpic_advanced_mode")) {
|
||||
boardConfiguration->useTpicAdvancedMode = isEnabled;
|
||||
} else if (strEqualCaseInsensitive(param, "knockdebug")) {
|
||||
engine->knockDebug = isEnabled;
|
||||
} else if (strEqualCaseInsensitive(param, "altcontrol")) {
|
||||
engineConfiguration->isAlternatorControlEnabled = isEnabled;
|
||||
} else if (strEqualCaseInsensitive(param, "sd")) {
|
||||
|
|
|
@ -200,6 +200,16 @@ static void intHoldCallback(trigger_event_e ckpEventType, uint32_t index DECLARE
|
|||
engine->m.hipCbTime = GET_TIMESTAMP() - engine->m.beforeHipCb;
|
||||
}
|
||||
|
||||
static void setMaxKnockSubDeg(int value){
|
||||
engineConfiguration->maxKnockSubDeg = value;
|
||||
showHipInfo();
|
||||
}
|
||||
|
||||
static void setKnockThresh(float value){
|
||||
engineConfiguration->knockVThreshold = value;
|
||||
showHipInfo();
|
||||
}
|
||||
|
||||
static void setPrescalerAndSDO(int value) {
|
||||
engineConfiguration->hip9011PrescalerAndSDO = value;
|
||||
}
|
||||
|
@ -362,6 +372,8 @@ void initHip9011(Logging *sharedLogger) {
|
|||
addConsoleActionF("set_gain", setGain);
|
||||
addConsoleActionF("set_band", setBand);
|
||||
addConsoleActionI("set_hip_prescalerandsdo", setPrescalerAndSDO);
|
||||
addConsoleActionF("set_knock_threshold", setKnockThresh);
|
||||
addConsoleActionI("set_max_knock_sub_deg", setMaxKnockSubDeg);
|
||||
chThdCreateStatic(hipTreadStack, sizeof(hipTreadStack), NORMALPRIO, (tfunc_t) hipThread, NULL);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue