auto-sync
This commit is contained in:
parent
b67087ecc5
commit
b84355d48e
|
@ -16,6 +16,10 @@ void setMazda626EngineConfiguration(engine_configuration_s *engineConfiguration)
|
||||||
board_configuration_s *boardConfiguration = &engineConfiguration->bc;
|
board_configuration_s *boardConfiguration = &engineConfiguration->bc;
|
||||||
engineConfiguration->trigger.type = TT_FORD_ESCORT_GT_T;
|
engineConfiguration->trigger.type = TT_FORD_ESCORT_GT_T;
|
||||||
|
|
||||||
|
// todo: introduce trigger offset parameter
|
||||||
|
// set_global_trigger_offset_angle 137.119154
|
||||||
|
engineConfiguration->globalTriggerAngleOffset = 137.119154;
|
||||||
|
|
||||||
setFrankenso_01_LCD(boardConfiguration);
|
setFrankenso_01_LCD(boardConfiguration);
|
||||||
setFrankenso0_1_joystick(engineConfiguration);
|
setFrankenso0_1_joystick(engineConfiguration);
|
||||||
|
|
||||||
|
|
|
@ -158,6 +158,8 @@ const char* getConfigurationName(engine_type_e engineType) {
|
||||||
return "Test";
|
return "Test";
|
||||||
case SACHS:
|
case SACHS:
|
||||||
return "SACHS";
|
return "SACHS";
|
||||||
|
case MAZDA_626:
|
||||||
|
return "Mazda626";
|
||||||
default:
|
default:
|
||||||
firmwareError("Unexpected: engineType %d", engineType);
|
firmwareError("Unexpected: engineType %d", engineType);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -305,13 +307,13 @@ static void setIdlePinMode(int value) {
|
||||||
doPrintConfiguration(engine);
|
doPrintConfiguration(engine);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void setInjectionOffset(int value) {
|
static void setInjectionOffset(float value) {
|
||||||
engineConfiguration->injectionAngle = value;
|
engineConfiguration->injectionAngle = value;
|
||||||
doPrintConfiguration(engine);
|
doPrintConfiguration(engine);
|
||||||
incrementGlobalConfigurationVersion();
|
incrementGlobalConfigurationVersion();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void setIgnitionOffset(int value) {
|
static void setIgnitionOffset(float value) {
|
||||||
engineConfiguration->ignitionBaseAngle = value;
|
engineConfiguration->ignitionBaseAngle = value;
|
||||||
doPrintConfiguration(engine);
|
doPrintConfiguration(engine);
|
||||||
incrementGlobalConfigurationVersion();
|
incrementGlobalConfigurationVersion();
|
||||||
|
@ -440,7 +442,7 @@ static void setCrankingFuel(float timeMs) {
|
||||||
printTemperatureInfo();
|
printTemperatureInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void setGlobalTriggerAngleOffset(int value) {
|
static void setGlobalTriggerAngleOffset(float value) {
|
||||||
engineConfiguration->globalTriggerAngleOffset = value;
|
engineConfiguration->globalTriggerAngleOffset = value;
|
||||||
incrementGlobalConfigurationVersion();
|
incrementGlobalConfigurationVersion();
|
||||||
doPrintConfiguration(engine);
|
doPrintConfiguration(engine);
|
||||||
|
@ -867,9 +869,9 @@ void initSettings(engine_configuration_s *engineConfiguration) {
|
||||||
addConsoleAction("tpsinfo", printTPSInfo);
|
addConsoleAction("tpsinfo", printTPSInfo);
|
||||||
addConsoleAction("info", printAllInfo);
|
addConsoleAction("info", printAllInfo);
|
||||||
|
|
||||||
addConsoleActionI("set_ignition_offset", setIgnitionOffset);
|
addConsoleActionF("set_ignition_offset", setIgnitionOffset);
|
||||||
addConsoleActionI("set_injection_offset", setInjectionOffset);
|
addConsoleActionF("set_injection_offset", setInjectionOffset);
|
||||||
addConsoleActionI("set_global_trigger_offset_angle", setGlobalTriggerAngleOffset);
|
addConsoleActionF("set_global_trigger_offset_angle", setGlobalTriggerAngleOffset);
|
||||||
addConsoleActionI("set_analog_chart_mode", setAnalogChartMode);
|
addConsoleActionI("set_analog_chart_mode", setAnalogChartMode);
|
||||||
addConsoleActionI("set_fixed_mode_timing", setFixedModeTiming);
|
addConsoleActionI("set_fixed_mode_timing", setFixedModeTiming);
|
||||||
addConsoleActionI("set_timing_mode", setTimingMode);
|
addConsoleActionI("set_timing_mode", setTimingMode);
|
||||||
|
|
Loading…
Reference in New Issue