logging of live data structs was: data points #3614

This commit is contained in:
Andrey 2022-06-29 03:21:53 -04:00
parent 19aad9f51d
commit dc4fcda6da
2 changed files with 225 additions and 298 deletions

View File

@ -1,4 +1,4 @@
// this section was generated automatically by rusEFI tool ConfigDefinition.jar based on (unknown script) console/binary/output_channels.txt Wed Jun 29 05:31:17 UTC 2022
// this section was generated automatically by rusEFI tool ConfigDefinition.jar based on (unknown script) console/binary/output_channels.txt Wed Jun 29 03:16:45 EDT 2022
// by class com.rusefi.output.CHeaderConsumer
// begin
#pragma once
@ -65,71 +65,68 @@ struct output_channels_s {
offset 0 bit 10 */
bool sd_msd : 1 {};
/**
* @@INDICATOR_NAME_CLUTCH_UP@@
offset 0 bit 11 */
bool clutchUpState : 1 {};
/**
* @@INDICATOR_NAME_CLUTCH_DOWN@@
offset 0 bit 12 */
bool clutchDownState : 1 {};
/**
offset 0 bit 13 */
bool isFan2On : 1 {};
/**
offset 0 bit 14 */
offset 0 bit 12 */
bool alternatorOnOff : 1 {};
/**
* @@INDICATOR_NAME_BRAKE_DOWN@@
offset 0 bit 15 */
bool brakePedalState : 1 {};
/**
offset 0 bit 16 */
offset 0 bit 13 */
bool toothLogReady : 1 {};
/**
offset 0 bit 17 */
offset 0 bit 14 */
bool unused3123 : 1 {};
/**
offset 0 bit 18 */
offset 0 bit 15 */
bool isTpsError : 1 {};
/**
offset 0 bit 19 */
offset 0 bit 16 */
bool isCltError : 1 {};
/**
offset 0 bit 20 */
offset 0 bit 17 */
bool isMapError : 1 {};
/**
offset 0 bit 21 */
offset 0 bit 18 */
bool isIatError : 1 {};
/**
offset 0 bit 22 */
offset 0 bit 19 */
bool unused131313 : 1 {};
/**
offset 0 bit 23 */
offset 0 bit 20 */
bool isTriggerError : 1 {};
/**
offset 0 bit 24 */
offset 0 bit 21 */
bool hasCriticalError : 1 {};
/**
offset 0 bit 25 */
offset 0 bit 22 */
bool isWarnNow : 1 {};
/**
offset 0 bit 26 */
offset 0 bit 23 */
bool isPedalError : 1 {};
/**
offset 0 bit 27 */
offset 0 bit 24 */
bool isKnockChipOk : 1 {};
/**
offset 0 bit 28 */
offset 0 bit 25 */
bool launchTriggered : 1 {};
/**
offset 0 bit 29 */
offset 0 bit 26 */
bool isTps2Error : 1 {};
/**
offset 0 bit 30 */
offset 0 bit 27 */
bool isIdleClosedLoop : 1 {};
/**
offset 0 bit 31 */
offset 0 bit 28 */
bool isIdleCoasting : 1 {};
/**
offset 0 bit 29 */
bool unusedBit_29_29 : 1 {};
/**
offset 0 bit 30 */
bool unusedBit_29_30 : 1 {};
/**
offset 0 bit 31 */
bool unusedBit_29_31 : 1 {};
/**
* @@GAUGE_NAME_RPM@@
RPM
@ -844,525 +841,453 @@ struct output_channels_s {
* offset 326
*/
scaled_channel<int16_t, 100, 1> accPedalSplit = (int16_t)0;
/**
* DI: Pump Angle
deg
* offset 328
*/
scaled_channel<int16_t, 50, 1> m_requested_pump = (int16_t)0;
/**
* @@GAUGE_NAME_BOOST_TARGET@@
kPa
* offset 330
*/
scaled_channel<int16_t, 30, 1> boostControlTarget = (int16_t)0;
/**
* Spark Cut Code
code
* offset 332
* offset 328
*/
scaled_channel<int8_t, 1, 1> sparkCutReason = (int8_t)0;
/**
* Fuel Cut Code
code
* offset 333
* offset 329
*/
scaled_channel<int8_t, 1, 1> fuelCutReason = (int8_t)0;
/**
* need 4 byte alignment
units
* offset 334
*/
uint8_t alignmentFill_at_334[2];
/**
* DI: fuel_requested_percent
v
* offset 336
*/
float fuel_requested_percent = (float)0;
/**
* DI: fuel_requested_percent_pi
v
* offset 340
*/
float fuel_requested_percent_pi = (float)0;
/**
* DI: m_I_sum_percent
v
* offset 344
*/
float m_I_sum_percent = (float)0;
/**
* DI: m_pressureTarget_kPa
v
* offset 348
*/
float m_pressureTarget_kPa = (float)0;
/**
* @@GAUGE_NAME_AIR_FLOW_ESTIMATE@@
kg/h
* offset 352
* offset 330
*/
scaled_channel<uint16_t, 10, 1> mafEstimate = (uint16_t)0;
/**
rpm
* offset 354
* offset 332
*/
uint16_t instantRpm = (uint16_t)0;
/**
* DI: next start
v
* offset 356
*/
float di_nextStart = (float)0;
/**
counter
* offset 360
* offset 334
*/
uint16_t systemEventReuse = (uint16_t)0;
/**
V
* offset 362
* offset 336
*/
scaled_channel<uint16_t, 1000, 1> rawMap = (uint16_t)0;
/**
V
* offset 364
* offset 338
*/
scaled_channel<uint16_t, 1000, 1> rawAfr = (uint16_t)0;
/**
%
* offset 366
* offset 340
*/
uint8_t tpsAccelFrom = (uint8_t)0;
/**
%
* offset 367
* offset 341
*/
uint8_t tpsAccelTo = (uint8_t)0;
/**
* offset 368
* need 4 byte alignment
units
* offset 342
*/
uint8_t alignmentFill_at_342[2];
/**
* offset 344
*/
scaled_channel<float, 1, 1> calibrationValue2 = (float)0;
/**
offset 372 bit 0 */
offset 348 bit 0 */
bool isMainRelayOn : 1 {};
/**
* Original reason for this is to check if USB is connected from Lua
offset 372 bit 1 */
offset 348 bit 1 */
bool isUsbConnected : 1 {};
/**
offset 372 bit 2 */
bool unusedBit_181_2 : 1 {};
offset 348 bit 2 */
bool unusedBit_174_2 : 1 {};
/**
offset 372 bit 3 */
bool unusedBit_181_3 : 1 {};
offset 348 bit 3 */
bool unusedBit_174_3 : 1 {};
/**
offset 372 bit 4 */
bool unusedBit_181_4 : 1 {};
offset 348 bit 4 */
bool unusedBit_174_4 : 1 {};
/**
offset 372 bit 5 */
bool unusedBit_181_5 : 1 {};
offset 348 bit 5 */
bool unusedBit_174_5 : 1 {};
/**
offset 372 bit 6 */
bool unusedBit_181_6 : 1 {};
offset 348 bit 6 */
bool unusedBit_174_6 : 1 {};
/**
offset 372 bit 7 */
bool unusedBit_181_7 : 1 {};
offset 348 bit 7 */
bool unusedBit_174_7 : 1 {};
/**
offset 372 bit 8 */
bool unusedBit_181_8 : 1 {};
offset 348 bit 8 */
bool unusedBit_174_8 : 1 {};
/**
offset 372 bit 9 */
bool unusedBit_181_9 : 1 {};
offset 348 bit 9 */
bool unusedBit_174_9 : 1 {};
/**
offset 372 bit 10 */
bool unusedBit_181_10 : 1 {};
offset 348 bit 10 */
bool unusedBit_174_10 : 1 {};
/**
offset 372 bit 11 */
bool unusedBit_181_11 : 1 {};
offset 348 bit 11 */
bool unusedBit_174_11 : 1 {};
/**
offset 372 bit 12 */
bool unusedBit_181_12 : 1 {};
offset 348 bit 12 */
bool unusedBit_174_12 : 1 {};
/**
offset 372 bit 13 */
bool unusedBit_181_13 : 1 {};
offset 348 bit 13 */
bool unusedBit_174_13 : 1 {};
/**
offset 372 bit 14 */
bool unusedBit_181_14 : 1 {};
offset 348 bit 14 */
bool unusedBit_174_14 : 1 {};
/**
offset 372 bit 15 */
bool unusedBit_181_15 : 1 {};
offset 348 bit 15 */
bool unusedBit_174_15 : 1 {};
/**
offset 372 bit 16 */
bool unusedBit_181_16 : 1 {};
offset 348 bit 16 */
bool unusedBit_174_16 : 1 {};
/**
offset 372 bit 17 */
bool unusedBit_181_17 : 1 {};
offset 348 bit 17 */
bool unusedBit_174_17 : 1 {};
/**
offset 372 bit 18 */
bool unusedBit_181_18 : 1 {};
offset 348 bit 18 */
bool unusedBit_174_18 : 1 {};
/**
offset 372 bit 19 */
bool unusedBit_181_19 : 1 {};
offset 348 bit 19 */
bool unusedBit_174_19 : 1 {};
/**
offset 372 bit 20 */
bool unusedBit_181_20 : 1 {};
offset 348 bit 20 */
bool unusedBit_174_20 : 1 {};
/**
offset 372 bit 21 */
bool unusedBit_181_21 : 1 {};
offset 348 bit 21 */
bool unusedBit_174_21 : 1 {};
/**
offset 372 bit 22 */
bool unusedBit_181_22 : 1 {};
offset 348 bit 22 */
bool unusedBit_174_22 : 1 {};
/**
offset 372 bit 23 */
bool unusedBit_181_23 : 1 {};
offset 348 bit 23 */
bool unusedBit_174_23 : 1 {};
/**
offset 372 bit 24 */
bool unusedBit_181_24 : 1 {};
offset 348 bit 24 */
bool unusedBit_174_24 : 1 {};
/**
offset 372 bit 25 */
bool unusedBit_181_25 : 1 {};
offset 348 bit 25 */
bool unusedBit_174_25 : 1 {};
/**
offset 372 bit 26 */
bool unusedBit_181_26 : 1 {};
offset 348 bit 26 */
bool unusedBit_174_26 : 1 {};
/**
offset 372 bit 27 */
bool unusedBit_181_27 : 1 {};
offset 348 bit 27 */
bool unusedBit_174_27 : 1 {};
/**
offset 372 bit 28 */
bool unusedBit_181_28 : 1 {};
offset 348 bit 28 */
bool unusedBit_174_28 : 1 {};
/**
offset 372 bit 29 */
bool unusedBit_181_29 : 1 {};
offset 348 bit 29 */
bool unusedBit_174_29 : 1 {};
/**
offset 372 bit 30 */
bool unusedBit_181_30 : 1 {};
offset 348 bit 30 */
bool unusedBit_174_30 : 1 {};
/**
offset 372 bit 31 */
bool unusedBit_181_31 : 1 {};
offset 348 bit 31 */
bool unusedBit_174_31 : 1 {};
/**
count
* offset 376
* offset 352
*/
int luaInvocationCounter = (int)0;
/**
nt
* offset 380
* offset 356
*/
int luaLastCycleDuration = (int)0;
/**
count
* offset 384
* offset 360
*/
uint8_t testBenchIter = (uint8_t)0;
/**
* "Current Range"
* offset 385
* offset 361
*/
uint8_t tcu_currentRange = (uint8_t)0;
/**
* @@GAUGE_NAME_TC_RATIO@@
value
* offset 386
* offset 362
*/
scaled_channel<uint16_t, 100, 1> tcRatio = (uint16_t)0;
/**
* "S"
* offset 388
* offset 364
*/
float lastShiftTime = (float)0;
/**
* offset 392
* offset 368
*/
int vssEdgeCounter = (int)0;
/**
* offset 396
* offset 372
*/
int issEdgeCounter = (int)0;
/**
* @@GAUGE_NAME_AUX_LINEAR_1@@
* offset 400
* offset 376
*/
scaled_channel<int16_t, 100, 1> auxLinear1 = (int16_t)0;
/**
* @@GAUGE_NAME_AUX_LINEAR_2@@
* offset 402
* offset 378
*/
scaled_channel<int16_t, 100, 1> auxLinear2 = (int16_t)0;
/**
offset 404 bit 0 */
bool launchSpeedCondition : 1 {};
/**
offset 404 bit 1 */
bool launchRpmCondition : 1 {};
/**
offset 404 bit 2 */
bool launchTpsCondition : 1 {};
/**
offset 404 bit 3 */
bool launchActivateSwitchCondition : 1 {};
/**
offset 404 bit 4 */
bool launchIsLaunchCondition : 1 {};
/**
offset 404 bit 5 */
bool launchCombinedConditions : 1 {};
/**
offset 404 bit 6 */
offset 380 bit 0 */
bool dfcoActive : 1 {};
/**
offset 404 bit 7 */
offset 380 bit 1 */
bool tpsAccelActive : 1 {};
/**
offset 404 bit 8 */
bool unusedBit_229_8 : 1 {};
offset 380 bit 2 */
bool unusedBit_216_2 : 1 {};
/**
offset 404 bit 9 */
bool unusedBit_229_9 : 1 {};
offset 380 bit 3 */
bool unusedBit_216_3 : 1 {};
/**
offset 404 bit 10 */
bool unusedBit_229_10 : 1 {};
offset 380 bit 4 */
bool unusedBit_216_4 : 1 {};
/**
offset 404 bit 11 */
bool unusedBit_229_11 : 1 {};
offset 380 bit 5 */
bool unusedBit_216_5 : 1 {};
/**
offset 404 bit 12 */
bool unusedBit_229_12 : 1 {};
offset 380 bit 6 */
bool unusedBit_216_6 : 1 {};
/**
offset 404 bit 13 */
bool unusedBit_229_13 : 1 {};
offset 380 bit 7 */
bool unusedBit_216_7 : 1 {};
/**
offset 404 bit 14 */
bool unusedBit_229_14 : 1 {};
offset 380 bit 8 */
bool unusedBit_216_8 : 1 {};
/**
offset 404 bit 15 */
bool unusedBit_229_15 : 1 {};
offset 380 bit 9 */
bool unusedBit_216_9 : 1 {};
/**
offset 404 bit 16 */
bool unusedBit_229_16 : 1 {};
offset 380 bit 10 */
bool unusedBit_216_10 : 1 {};
/**
offset 404 bit 17 */
bool unusedBit_229_17 : 1 {};
offset 380 bit 11 */
bool unusedBit_216_11 : 1 {};
/**
offset 404 bit 18 */
bool unusedBit_229_18 : 1 {};
offset 380 bit 12 */
bool unusedBit_216_12 : 1 {};
/**
offset 404 bit 19 */
bool unusedBit_229_19 : 1 {};
offset 380 bit 13 */
bool unusedBit_216_13 : 1 {};
/**
offset 404 bit 20 */
bool unusedBit_229_20 : 1 {};
offset 380 bit 14 */
bool unusedBit_216_14 : 1 {};
/**
offset 404 bit 21 */
bool unusedBit_229_21 : 1 {};
offset 380 bit 15 */
bool unusedBit_216_15 : 1 {};
/**
offset 404 bit 22 */
bool unusedBit_229_22 : 1 {};
offset 380 bit 16 */
bool unusedBit_216_16 : 1 {};
/**
offset 404 bit 23 */
bool unusedBit_229_23 : 1 {};
offset 380 bit 17 */
bool unusedBit_216_17 : 1 {};
/**
offset 404 bit 24 */
bool unusedBit_229_24 : 1 {};
offset 380 bit 18 */
bool unusedBit_216_18 : 1 {};
/**
offset 404 bit 25 */
bool unusedBit_229_25 : 1 {};
offset 380 bit 19 */
bool unusedBit_216_19 : 1 {};
/**
offset 404 bit 26 */
bool unusedBit_229_26 : 1 {};
offset 380 bit 20 */
bool unusedBit_216_20 : 1 {};
/**
offset 404 bit 27 */
bool unusedBit_229_27 : 1 {};
offset 380 bit 21 */
bool unusedBit_216_21 : 1 {};
/**
offset 404 bit 28 */
bool unusedBit_229_28 : 1 {};
offset 380 bit 22 */
bool unusedBit_216_22 : 1 {};
/**
offset 404 bit 29 */
bool unusedBit_229_29 : 1 {};
offset 380 bit 23 */
bool unusedBit_216_23 : 1 {};
/**
offset 404 bit 30 */
bool unusedBit_229_30 : 1 {};
offset 380 bit 24 */
bool unusedBit_216_24 : 1 {};
/**
offset 404 bit 31 */
bool unusedBit_229_31 : 1 {};
offset 380 bit 25 */
bool unusedBit_216_25 : 1 {};
/**
offset 380 bit 26 */
bool unusedBit_216_26 : 1 {};
/**
offset 380 bit 27 */
bool unusedBit_216_27 : 1 {};
/**
offset 380 bit 28 */
bool unusedBit_216_28 : 1 {};
/**
offset 380 bit 29 */
bool unusedBit_216_29 : 1 {};
/**
offset 380 bit 30 */
bool unusedBit_216_30 : 1 {};
/**
offset 380 bit 31 */
bool unusedBit_216_31 : 1 {};
/**
* @@GAUGE_NAME_BOOST_OUTPUT@@
%
* offset 408
* offset 384
*/
scaled_channel<uint8_t, 2, 1> boostControllerOutput = (uint8_t)0;
/**
* @@GAUGE_NAME_BOOST_OPEN_LOOP@@
%
* offset 409
* offset 385
*/
scaled_channel<uint8_t, 2, 1> boostControllerOpenLoopPart = (uint8_t)0;
/**
kPa
* offset 410
* offset 386
*/
scaled_channel<uint16_t, 10, 1> fallbackMap = (uint16_t)0;
/**
* @@GAUGE_NAME_BOOST_CLOSED_LOOP@@
%
* offset 412
*/
scaled_channel<int8_t, 2, 1> boostControllerClosedLoopPart = (int8_t)0;
/**
* @@GAUGE_NAME_DETECTED_GEAR@@
* offset 413
* offset 388
*/
uint8_t detectedGear = (uint8_t)0;
/**
deg
* offset 414
* need 4 byte alignment
units
* offset 389
*/
scaled_channel<int16_t, 100, 1> unusedAimingCltCorrection = (int16_t)0;
/**
deg
* offset 416
*/
scaled_channel<int16_t, 100, 1> unusedAtimingIatCorrection = (int16_t)0;
/**
deg
* offset 418
*/
scaled_channel<int16_t, 100, 1> unusedAtimingPidCorrection = (int16_t)0;
uint8_t alignmentFill_at_389[1];
/**
* Instant MAP
kPa
* offset 420
* offset 390
*/
scaled_channel<uint16_t, 30, 1> instantMAPValue = (uint16_t)0;
/**
* offset 422
* offset 392
*/
uint16_t mostRecentTimeBetweenSparkEvents = (uint16_t)0;
/**
* offset 424
* offset 394
*/
uint16_t mostRecentTimeBetweenIgnitionEvents = (uint16_t)0;
/**
* offset 426
* offset 396
*/
uint16_t maxLockedDuration = (uint16_t)0;
/**
* offset 428
* offset 398
*/
uint16_t maxTriggerReentrant = (uint16_t)0;
/**
* offset 430
* offset 400
*/
uint16_t canWriteOk = (uint16_t)0;
/**
* offset 432
* offset 402
*/
uint16_t canWriteNotOk = (uint16_t)0;
/**
* need 4 byte alignment
units
* offset 434
*/
uint8_t alignmentFill_at_434[2];
/**
* offset 436
* offset 404
*/
int triggerPrimaryFall = (int)0;
/**
* offset 440
* offset 408
*/
int triggerPrimaryRise = (int)0;
/**
* offset 444
* offset 412
*/
int triggerSecondaryFall = (int)0;
/**
* offset 448
* offset 416
*/
int triggerSecondaryRise = (int)0;
/**
* offset 452
* offset 420
*/
int triggerVvtFall = (int)0;
/**
* offset 456
* offset 424
*/
int triggerVvtRise = (int)0;
/**
* offset 460
* offset 428
*/
uint8_t startStopStateToggleCounter = (uint8_t)0;
/**
* offset 461
* offset 429
*/
uint8_t starterState = (uint8_t)0;
/**
* offset 462
* offset 430
*/
uint8_t starterRelayDisable = (uint8_t)0;
/**
* offset 463
* offset 431
*/
uint8_t multiSparkCounter = (uint8_t)0;
/**
* offset 464
* offset 432
*/
float injectorFlowPressureRatio = (float)0;
/**
kPa
* offset 468
* offset 436
*/
float injectorFlowPressureDelta = (float)0;
/**
* offset 472
*/
float etbIntegralError = (float)0;
/**
%
* offset 476
*/
float etbCurrentTarget = (float)0;
/**
* offset 480
* offset 440
*/
pid_status_s alternatorStatus;
/**
* offset 492
* offset 452
*/
pid_status_s idleStatus;
/**
* offset 504
* offset 464
*/
pid_status_s etbStatus;
/**
* offset 516
* offset 476
*/
pid_status_s boostStatus;
/**
* aux speed 1
s
* offset 528
* offset 488
*/
uint16_t auxSpeed1 = (uint16_t)0;
/**
* aux speed 2
s
* offset 530
* offset 490
*/
uint16_t auxSpeed2 = (uint16_t)0;
/**
* @@GAUGE_NAME_ISS@@
RPM
* offset 532
* offset 492
*/
scaled_channel<uint16_t, 1, 1> ISSValue = (uint16_t)0;
/**
* offset 534
* offset 494
*/
uint8_t unusedAtTheEnd[78];
};
static_assert(sizeof(output_channels_s) == 612);
static_assert(sizeof(output_channels_s) == 572);
// end
// this section was generated automatically by rusEFI tool ConfigDefinition.jar based on (unknown script) console/binary/output_channels.txt Wed Jun 29 05:31:17 UTC 2022
// this section was generated automatically by rusEFI tool ConfigDefinition.jar based on (unknown script) console/binary/output_channels.txt Wed Jun 29 03:16:45 EDT 2022

View File

@ -1,4 +1,4 @@
// this section was generated automatically by rusEFI tool ConfigDefinition.jar based on (unknown script) controllers/engine_cycle/high_pressure_fuel_pump.txt Sun Apr 17 20:27:25 UTC 2022
// this section was generated automatically by rusEFI tool ConfigDefinition.jar based on (unknown script) controllers/engine_cycle/high_pressure_fuel_pump.txt Wed Jun 29 03:16:46 EDT 2022
// by class com.rusefi.output.CHeaderConsumer
// begin
#pragma once
@ -119,11 +119,13 @@ struct high_pressure_fuel_pump_s {
*/
angle_t nextLobe = (angle_t)0;
/**
* DI: next start
v
* offset 20
*/
angle_t nextStart = (angle_t)0;
float di_nextStart = (float)0;
};
static_assert(sizeof(high_pressure_fuel_pump_s) == 24);
// end
// this section was generated automatically by rusEFI tool ConfigDefinition.jar based on (unknown script) controllers/engine_cycle/high_pressure_fuel_pump.txt Sun Apr 17 20:27:25 UTC 2022
// this section was generated automatically by rusEFI tool ConfigDefinition.jar based on (unknown script) controllers/engine_cycle/high_pressure_fuel_pump.txt Wed Jun 29 03:16:46 EDT 2022