diff --git a/firmware/console/binary/tunerstudio_configuration.h b/firmware/console/binary/tunerstudio_configuration.h index 25f029a0b9..f5145c56ec 100644 --- a/firmware/console/binary/tunerstudio_configuration.h +++ b/firmware/console/binary/tunerstudio_configuration.h @@ -122,7 +122,8 @@ typedef struct { int debugIntField3; // 220 int timeSeconds; // 224 float engineLoadDelta; // 228 - int unused3[11]; + float speedToRpmRatio; // 232 + int unused3[10]; } TunerStudioOutputChannels; #endif /* TUNERSTUDIO_CONFIGURATION_H_ */ diff --git a/firmware/tunerstudio/rusefi.ini b/firmware/tunerstudio/rusefi.ini index 446d9a932f..2b26044e16 100644 --- a/firmware/tunerstudio/rusefi.ini +++ b/firmware/tunerstudio/rusefi.ini @@ -809,6 +809,7 @@ fileVersion = { 20160430 } debugIntField2 = scalar, U32, 216, "val", 1, 0.0; debugIntField3 = scalar, U32, 220, "val", 1, 0.0; engineLoadDelta = scalar,F32, 228, "value", 1, 0 + speedToRpmRatio = scalar,F32, 232, "value", 1, 0 egoCorrection = { 100 } time = { timeNow } @@ -1088,6 +1089,8 @@ fileVersion = { 20160430 } debugIntField1Gauge = debugIntField1, "debug i1", "%", 0, 100, 0, 0, 100, 100, 0, 0 debugIntField2Gauge = debugIntField2, "debug i2", "%", 0, 100, 0, 0, 100, 100, 0, 0 debugIntField3Gauge = debugIntField3, "debug i3", "%", 0, 100, 0, 0, 100, 100, 0, 0 + speedToRpmRatioGauge = speedToRpmRatio, "speed2rpm", "", 0, 100, 0, 0, 100, 100, 4, 4 + [FrontPage] ; Gauges are numbered left to right, top to bottom. @@ -1151,6 +1154,7 @@ fileVersion = { 20160430 } entry = ign_adv, "ignAdv", float, "%.2f" entry = knockLevel, "Knock", float, "%.2f" entry = vehicleSpeedKph, "speed", float, "%.2f" + entry = speedToRpmRatio, "s2rpm", float, "%.3f" entry = rpmAcceleration, "dRPM", float, "%.3f" entry = massAirFlowValue,"airMass", float, "%.3f" entry = pedalPosition, "pedal", float, "%.3f" @@ -1640,8 +1644,9 @@ cmd_test_idle_valve = "w\x00\x17\x00\x01" ; Engine->Speed Sensor dialog = speedSensor, "Speed Sensor Settings" - field = "Input pin", vehicleSpeedSensorInputPin - field = "revolution to speed mult", vehicleSpeedCoef + field = "Enabled", hasVehicleSpeedSensor + field = "Input pin", vehicleSpeedSensorInputPin, {hasVehicleSpeedSensor == 1} + field = "revolution to speed mult", vehicleSpeedCoef, {hasVehicleSpeedSensor == 1} ; Engine->Other inputs dialog = analogInputs, "Analog inputs"