automation around outputs section #197

This commit is contained in:
rusefillc 2021-11-26 21:03:45 -05:00
parent 7c217d73e9
commit 93ccc9b1be
3 changed files with 91 additions and 31 deletions

View File

@ -173,4 +173,28 @@ uint16_t rpmAcceleration;;"",1, 0, 0, 0, 0
uint16_t autoscale debugIntField4;;"", 1, 0, 0, 0, 0
uint16_t autoscale debugIntField5;;"", 1, 0, 0, 0, 0
uint16_t autoscale accelerationX;;"",{1/@@PACK_MULT_PERCENT@@}, 0, 0, 0, 0
uint16_t autoscale accelerationY;;"",{1/@@PACK_MULT_PERCENT@@}, 0, 0, 0, 0
uint16_t[EGT_CHANNEL_COUNT] egtValues;;"", 1, 0, 0, 0, 0
uint16_t autoscale throttle2Position;;"",{1/@@PACK_MULT_PERCENT@@}, 0, 0, 0, 0
uint16_t autoscale rawTps1Primary;;"",{1/@@PACK_MULT_VOLTAGE@@}, 0, 0, 0, 0
uint16_t autoscale rawPpsPrimary;;"",{1/@@PACK_MULT_VOLTAGE@@}, 0, 0, 0, 0
uint16_t autoscale rawClt;;"",{1/@@PACK_MULT_VOLTAGE@@}, 0, 0, 0, 0
uint16_t autoscale rawIat;;"",{1/@@PACK_MULT_VOLTAGE@@}, 0, 0, 0, 0
uint16_t autoscale rawOilPressure;;"",{1/@@PACK_MULT_VOLTAGE@@}, 0, 0, 0, 0
uint16_t autoscale tuneCrc16;;"", 1, 0, 0, 0, 0
uint8_t autoscale unusedAt246;;"", 1, 0, 0, 0, 0
uint8_t autoscale tcuCurrentGear;;"", 1, 0, 0, 0, 0
uint16_t autoscale rawPpsSecondary;;"",{1/@@PACK_MULT_VOLTAGE@@}, 0, 0, 0, 0
uint8_t[12] autoscale knockLevels;;"",1, 0, 0, 0, 0
uint8_t autoscale tcuDesiredGear;;"",{1/1}, 0, 0, 0, 0
uint8_t autoscale flexPercent;;"",{1/2}, 0, 0, 0, 0
end_struct

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 Fri Nov 26 20:52:04 EST 2021
// this section was generated automatically by rusEFI tool ConfigDefinition.jar based on (unknown script) console/binary/output_channels.txt Fri Nov 26 21:02:55 EST 2021
// by class com.rusefi.output.CHeaderConsumer
// begin
#pragma once
@ -438,8 +438,72 @@ struct ts_outputs_s {
* offset 210
*/
scaled_channel<uint16_t, 1, 1> debugIntField5 = (uint16_t)0;
/** total size 212*/
/**
* offset 212
*/
scaled_channel<uint16_t, 100, 1> accelerationX = (uint16_t)0;
/**
* offset 214
*/
scaled_channel<uint16_t, 100, 1> accelerationY = (uint16_t)0;
/**
* offset 216
*/
uint16_t egtValues[EGT_CHANNEL_COUNT];
/**
* offset 232
*/
scaled_channel<uint16_t, 100, 1> throttle2Position = (uint16_t)0;
/**
* offset 234
*/
scaled_channel<uint16_t, 1000, 1> rawTps1Primary = (uint16_t)0;
/**
* offset 236
*/
scaled_channel<uint16_t, 1000, 1> rawPpsPrimary = (uint16_t)0;
/**
* offset 238
*/
scaled_channel<uint16_t, 1000, 1> rawClt = (uint16_t)0;
/**
* offset 240
*/
scaled_channel<uint16_t, 1000, 1> rawIat = (uint16_t)0;
/**
* offset 242
*/
scaled_channel<uint16_t, 1000, 1> rawOilPressure = (uint16_t)0;
/**
* offset 244
*/
scaled_channel<uint16_t, 1, 1> tuneCrc16 = (uint16_t)0;
/**
* offset 246
*/
scaled_channel<uint8_t, 1, 1> unusedAt246 = (uint8_t)0;
/**
* offset 247
*/
scaled_channel<uint8_t, 1, 1> tcuCurrentGear = (uint8_t)0;
/**
* offset 248
*/
scaled_channel<uint16_t, 1000, 1> rawPpsSecondary = (uint16_t)0;
/**
* offset 250
*/
scaled_channel<uint8_t, 1, 1> knockLevels[12];
/**
* offset 262
*/
scaled_channel<uint8_t, 1, 1> tcuDesiredGear = (uint8_t)0;
/**
* offset 263
*/
scaled_channel<uint8_t, 2, 1> flexPercent = (uint8_t)0;
/** total size 264*/
};
// end
// this section was generated automatically by rusEFI tool ConfigDefinition.jar based on (unknown script) console/binary/output_channels.txt Fri Nov 26 20:52:04 EST 2021
// this section was generated automatically by rusEFI tool ConfigDefinition.jar based on (unknown script) console/binary/output_channels.txt Fri Nov 26 21:02:55 EST 2021

View File

@ -44,34 +44,6 @@ enum class TsCalMode : uint8_t {
struct TunerStudioOutputChannels : ts_outputs_s {
/* see also [OutputChannels] in rusefi.input */
// accelerometer
scaled_percent accelerationX; // 212
scaled_percent accelerationY; // 214
// EGT
uint16_t egtValues[EGT_CHANNEL_COUNT] ; // 216
scaled_percent throttle2Position; // 232
scaled_voltage rawTps1Primary; // 234
scaled_voltage rawPpsPrimary; // 236
scaled_voltage rawClt; // 238
scaled_voltage rawIat; // 240
scaled_voltage rawOilPressure; // 242
scaled_channel<uint16_t> tuneCrc16; // 244
scaled_channel<uint8_t> unusedAt246;
scaled_channel<uint8_t> tcuCurrentGear; // 247
scaled_voltage rawPpsSecondary; // 248
scaled_channel<int8_t> knockLevels[12]; // 250
scaled_channel<uint8_t> tcuDesiredGear; // 262
scaled_channel<uint8_t, 2> flexPercent; // 263
scaled_voltage rawIdlePositionSensor; // 264
scaled_voltage rawWastegatePositionSensor; // 266