diff --git a/firmware/console/binary/output_channels.txt b/firmware/console/binary/output_channels.txt index ace8f8672a..2702fe15cf 100644 --- a/firmware/console/binary/output_channels.txt +++ b/firmware/console/binary/output_channels.txt @@ -369,7 +369,7 @@ float mapFast uint16_t autoscale mafMeasured2;@@GAUGE_NAME_AIR_FLOW_MEASURED_2@@;"kg/h",{1/@@PACK_MULT_MASS_FLOW@@}, 0, 0, 0, 1 uint16_t schedulingUsedCount;;"",1,0,0,0,0 - uint16_t autoscale vehicleSpeedKph;@@GAUGE_NAME_VVS@@;"kph",0.01, 0, 0, 0, 2 + uint16_t autoscale vehicleSpeedKph;@@GAUGE_NAME_VVS@@;"kph",{1/@@PACK_MULT_VSS@@}, 0, 0, 0, 2 uint8_t[136 iterate] unusedAtTheEnd;;"",1, 0, 0, 0, 0 end_struct diff --git a/firmware/integration/rusefi_config.txt b/firmware/integration/rusefi_config.txt index 1290dd61ad..9d7e3aeee7 100644 --- a/firmware/integration/rusefi_config.txt +++ b/firmware/integration/rusefi_config.txt @@ -235,6 +235,7 @@ struct_no_prefix engine_configuration_s #define PACK_MULT_TEMPERATURE 100 #define PACK_ADD_TEMPERATURE 40 #define PACK_MULT_MS 300 +#define PACK_MULT_VSS 100 #define PACK_MULT_AFR 1000 #define PACK_MULT_LAMBDA 10000 #define PACK_MULT_ANGLE 50 diff --git a/java_console/models/src/main/java/com/rusefi/core/Sensor.java b/java_console/models/src/main/java/com/rusefi/core/Sensor.java index 1e9618515a..80c7559905 100644 --- a/java_console/models/src/main/java/com/rusefi/core/Sensor.java +++ b/java_console/models/src/main/java/com/rusefi/core/Sensor.java @@ -32,7 +32,7 @@ public enum Sensor implements BinaryLogEntry { RPMValue(GAUGE_NAME_RPM, SensorCategory.SENSOR_INPUTS, FieldType.UINT16, TsOutputs.RPMVALUE, 1, 0, 8000, "RPM"), // rpmAcceleration("dRPM", SensorCategory.SENSOR_INPUTS, FieldType.INT16, 6, 1.0, 0.0, 5.0, "RPM/s"), // speedToRpmRatio("Gearbox Ratio", SensorCategory.SENSOR_INPUTS, FieldType.INT16, 8, 0.01, 0.0, 0.0, "value"), - vehicleSpeedKph("Vehicle Speed", SensorCategory.SENSOR_INPUTS, FieldType.INT8, TsOutputs.VEHICLESPEEDKPH, 1.0, 0.0, 0.0, "kph"), + vehicleSpeedKph("Vehicle Speed", SensorCategory.SENSOR_INPUTS, FieldType.INT8, TsOutputs.VEHICLESPEEDKPH, 1.0 / PACK_MULT_VSS, 0.0, 0.0, "kph"), // Temperatures INT_TEMP(GAUGE_NAME_CPU_TEMP, SensorCategory.OPERATIONS, FieldType.INT8, TsOutputs.INTERNALMCUTEMPERATURE, 1, 0, 5, "C"),