auto-sync
This commit is contained in:
parent
6d71409968
commit
c4e3bd9f2d
|
@ -542,7 +542,7 @@ void setDefaultConfiguration(DECLARE_ENGINE_PARAMETER_F) {
|
||||||
boardConfiguration->logicAnalyzerPins[2] = GPIO_UNASSIGNED;
|
boardConfiguration->logicAnalyzerPins[2] = GPIO_UNASSIGNED;
|
||||||
boardConfiguration->logicAnalyzerPins[3] = GPIO_UNASSIGNED;
|
boardConfiguration->logicAnalyzerPins[3] = GPIO_UNASSIGNED;
|
||||||
boardConfiguration->vehicleSpeedSensorInputPin = GPIO_UNASSIGNED;
|
boardConfiguration->vehicleSpeedSensorInputPin = GPIO_UNASSIGNED;
|
||||||
engineConfiguration->vehicleSpeedCoef = 100;
|
engineConfiguration->vehicleSpeedCoef = 1.0f;
|
||||||
|
|
||||||
boardConfiguration->logicAnalyzerMode[0] = false;
|
boardConfiguration->logicAnalyzerMode[0] = false;
|
||||||
boardConfiguration->logicAnalyzerMode[1] = false;
|
boardConfiguration->logicAnalyzerMode[1] = false;
|
||||||
|
|
|
@ -915,6 +915,12 @@ static void setInjectorLag(float value) {
|
||||||
engineConfiguration->injector.lag = value;
|
engineConfiguration->injector.lag = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void setValue(const char *paramStr, const char *valueStr) {
|
||||||
|
|
||||||
|
float value = atoff(valueStr);
|
||||||
|
engineConfiguration->vehicleSpeedCoef = value;
|
||||||
|
}
|
||||||
|
|
||||||
void initSettings(engine_configuration_s *engineConfiguration) {
|
void initSettings(engine_configuration_s *engineConfiguration) {
|
||||||
addConsoleActionP("showconfig", (VoidPtr) doPrintConfiguration, &engine);
|
addConsoleActionP("showconfig", (VoidPtr) doPrintConfiguration, &engine);
|
||||||
addConsoleAction("tempinfo", printTemperatureInfo);
|
addConsoleAction("tempinfo", printTemperatureInfo);
|
||||||
|
@ -1001,6 +1007,8 @@ void initSettings(engine_configuration_s *engineConfiguration) {
|
||||||
addConsoleActionS("set_ac_pin", setACPin);
|
addConsoleActionS("set_ac_pin", setACPin);
|
||||||
addConsoleActionS("set_idle_pin", setIdlePin);
|
addConsoleActionS("set_idle_pin", setIdlePin);
|
||||||
|
|
||||||
|
addConsoleActionSS("set", setValue);
|
||||||
|
|
||||||
addConsoleAction("mapinfo", printMAPInfo);
|
addConsoleAction("mapinfo", printMAPInfo);
|
||||||
#if HAL_USE_ADC || defined(__DOXYGEN__)
|
#if HAL_USE_ADC || defined(__DOXYGEN__)
|
||||||
addConsoleActionSS("set_analog_input_pin", setAnalogInputPin);
|
addConsoleActionSS("set_analog_input_pin", setAnalogInputPin);
|
||||||
|
|
Loading…
Reference in New Issue