auto-sync

This commit is contained in:
rusEfi 2016-10-13 01:02:02 -04:00
parent 4e431d0cc7
commit 0d44dd63dd
4 changed files with 8 additions and 3 deletions

View File

@ -40,7 +40,7 @@ typedef struct {
short int alignment; // size 2, offset 34 short int alignment; // size 2, offset 34
float baroPressure; // size 4, offset 36 float baroPressure; // size 4, offset 36
float manifoldAirPressure; // size 4, offset 40 float manifoldAirPressure; // size 4, offset 40
float crankingFuelMs; float crankingFuelMs; // offset 44
/** /**
* This is the raw value we take from the fuel map or base fuel algorithm, before the corrections * This is the raw value we take from the fuel map or base fuel algorithm, before the corrections
*/ */
@ -50,7 +50,7 @@ typedef struct {
float sparkDwell; // 60 float sparkDwell; // 60
/** /**
* this one contains total resulting fuel squirt time, per event * this one contains total resulting fuel squirt time, per event
* With all corrections. See also baseFuel * With all corrections and injector lag. See also baseFuel
*/ */
float actualLastInjection; // 64 float actualLastInjection; // 64
float debugFloatField1; // 68 float debugFloatField1; // 68

View File

@ -309,7 +309,8 @@ public:
TriggerCentral triggerCentral; TriggerCentral triggerCentral;
/** /**
* Fuel injection duration for current engine cycle, without wall wetting * Each individual fuel injection duration for current engine cycle, without wall wetting
* including everything including injector lag, both cranking and running
*/ */
floatms_t fuelMs; floatms_t fuelMs;
/** /**

View File

@ -13,6 +13,7 @@ public enum Sensor {
MAP("MAP", SensorCategory.SENSOR_INPUTS), MAP("MAP", SensorCategory.SENSOR_INPUTS),
MAP_RAW("MAP_RAW", SensorCategory.SENSOR_INPUTS), MAP_RAW("MAP_RAW", SensorCategory.SENSOR_INPUTS),
BARO("Baro", SensorCategory.SENSOR_INPUTS), BARO("Baro", SensorCategory.SENSOR_INPUTS),
// todo: unify with ignitionAdvance
TIMING("Timing Advance", SensorCategory.OPERATIONS, "deg", -180, 180), TIMING("Timing Advance", SensorCategory.OPERATIONS, "deg", -180, 180),
/** /**
@ -92,6 +93,8 @@ public enum Sensor {
TPS(SensorCategory.SENSOR_INPUTS, FieldType.FLOAT, 12, BackgroundColor.MUD, 0, 100, "%"), TPS(SensorCategory.SENSOR_INPUTS, FieldType.FLOAT, 12, BackgroundColor.MUD, 0, 100, "%"),
FUEL_BASE(SensorCategory.FUEL, FieldType.FLOAT, 48, BackgroundColor.MUD, 0, 30, "ms"), FUEL_BASE(SensorCategory.FUEL, FieldType.FLOAT, 48, BackgroundColor.MUD, 0, 30, "ms"),
T_CHARGE(SensorCategory.FUEL, FieldType.FLOAT, 52, BackgroundColor.MUD, 30, 140), T_CHARGE(SensorCategory.FUEL, FieldType.FLOAT, 52, BackgroundColor.MUD, 30, 140),
// todo: unify with TIMING
ignitionAdvance(SensorCategory.OPERATIONS, FieldType.FLOAT, 56, BackgroundColor.MUD, 30, 140),
DWELL(SensorCategory.OPERATIONS, FieldType.FLOAT, 60, BackgroundColor.MUD, 1, 10), DWELL(SensorCategory.OPERATIONS, FieldType.FLOAT, 60, BackgroundColor.MUD, 1, 10),
actualLastInjection(SensorCategory.FUEL, FieldType.FLOAT, 64, BackgroundColor.MUD, 0, 30, "ms"), actualLastInjection(SensorCategory.FUEL, FieldType.FLOAT, 64, BackgroundColor.MUD, 0, 30, "ms"),
debugFloatField1(SensorCategory.OPERATIONS, FieldType.FLOAT, 68, BackgroundColor.MUD, 0, 5), debugFloatField1(SensorCategory.OPERATIONS, FieldType.FLOAT, 68, BackgroundColor.MUD, 0, 5),

View File

@ -38,6 +38,7 @@ public class SensorLogger {
Sensor.FUEL_BASE, Sensor.FUEL_BASE,
Sensor.actualLastInjection, Sensor.actualLastInjection,
Sensor.ignitionAdvance,
Sensor.deltaTps, Sensor.deltaTps,
Sensor.tpsAccelFuel, Sensor.tpsAccelFuel,