extracting magic constant

This commit is contained in:
rusefi 2020-04-03 16:06:21 -04:00
parent 0ca63356c0
commit 16ada2d85d
5 changed files with 9 additions and 5 deletions

View File

@ -1646,6 +1646,7 @@
#define overrideCrankingIacSetting_offset_hex 5c4
#define overrideCrankingIgnition_offset 516
#define overrideCrankingIgnition_offset_hex 204
#define PACK_ADD_TEMPERATURE 40
#define PACK_MULT_AFR 1000
#define PACK_MULT_ANGLE 50
#define PACK_MULT_MS 300

View File

@ -99,12 +99,12 @@ struct Sensors1 {
static void populateFrame(Sensors1& msg) {
msg.map = getMap();
msg.clt = getCoolantTemperature() + 40;
msg.iat = getIntakeAirTemperature() + 40;
msg.clt = getCoolantTemperature() + PACK_ADD_TEMPERATURE;
msg.iat = getIntakeAirTemperature() + PACK_ADD_TEMPERATURE;
// todo: does aux temp even work?
msg.aux1 = 0 + 40;
msg.aux2 = 0 + 40;
msg.aux1 = 0 + PACK_ADD_TEMPERATURE;
msg.aux2 = 0 + PACK_ADD_TEMPERATURE;
msg.mcuTemp = getMCUInternalTemperature();
msg.fuelLevel = engine->sensors.fuelTankLevel;

View File

@ -1646,6 +1646,7 @@
#define overrideCrankingIacSetting_offset_hex 5c4
#define overrideCrankingIgnition_offset 516
#define overrideCrankingIgnition_offset_hex 204
#define PACK_ADD_TEMPERATURE 40
#define PACK_MULT_AFR 1000
#define PACK_MULT_ANGLE 50
#define PACK_MULT_MS 300

View File

@ -139,6 +139,7 @@ struct_no_prefix engine_configuration_s
#define PACK_MULT_PRESSURE 30
#define PACK_MULT_PERCENT 100
#define PACK_MULT_TEMPERATURE 100
#define PACK_ADD_TEMPERATURE 40
#define PACK_MULT_MS 300
#define PACK_MULT_AFR 1000
#define PACK_MULT_ANGLE 50

View File

@ -1,6 +1,6 @@
package com.rusefi.config.generated;
// this file was generated automatically by rusEfi tool ConfigDefinition.jar based on integration\rusefi_config.txt Tue Mar 31 16:40:27 EDT 2020
// this file was generated automatically by rusEfi tool ConfigDefinition.jar based on integration\rusefi_config.txt Fri Apr 03 16:05:17 EDT 2020
// by class com.rusefi.output.FileJavaFieldsConsumer
import com.rusefi.config.*;
@ -1084,6 +1084,7 @@ public class Fields {
public static final int overrideCrankingIacSetting_offset = 1476;
public static final int overrideCrankingIgnition_offset = 516;
public static final int overrideCrankingIgnition_offset_hex = 204;
public static final int PACK_ADD_TEMPERATURE = 40;
public static final int PACK_MULT_AFR = 1000;
public static final int PACK_MULT_ANGLE = 50;
public static final int PACK_MULT_MS = 300;