fome-fw/firmware/controllers/algo/fuel/fuel_computer_generated.h

186 lines
3.8 KiB
C
Raw Normal View History

2023-01-16 05:47:18 -08:00
// this section was generated automatically by rusEFI tool ConfigDefinition.jar based on (unknown script) controllers/algo/fuel/fuel_computer.txt Mon Jan 16 13:46:12 UTC 2023
2022-09-01 16:18:26 -07:00
// by class com.rusefi.output.CHeaderConsumer
// begin
#pragma once
#include "rusefi_types.h"
2023-01-14 13:08:25 -08:00
// start of running_fuel_s
struct running_fuel_s {
/**
* offset 0
*/
float postCrankingFuelCorrection = (float)0;
/**
* @@GAUGE_NAME_FUEL_IAT_CORR@@
* offset 4
*/
float intakeTemperatureCoefficient = (float)0;
/**
* @@GAUGE_NAME_FUEL_CLT_CORR@@
* offset 8
*/
float coolantTemperatureCoefficient = (float)0;
/**
* offset 12
*/
float timeSinceCrankingInSecs = (float)0;
/**
* offset 16
*/
floatms_t baseFuel = (floatms_t)0;
/**
* Fuel: actual
* Actual injection duration with CLT, IAT and TPS acceleration corrections per cycle, as squirt duration.
* Without injector lag.
* @see baseFuel
* @see actualLastInjection
* offset 20
*/
floatms_t fuel = (floatms_t)0;
};
static_assert(sizeof(running_fuel_s) == 24);
2022-09-01 16:18:26 -07:00
// start of fuel_computer_s
struct fuel_computer_s {
/**
2023-01-16 05:47:18 -08:00
mult
2022-09-01 16:18:26 -07:00
* offset 0
*/
2023-01-14 02:42:09 -08:00
float totalFuelCorrection = (float)0;
/**
* offset 4
*/
2023-01-14 13:08:25 -08:00
running_fuel_s running;
/**
%
* offset 28
*/
2022-11-05 17:28:03 -07:00
scaled_channel<uint16_t, 100, 1> afrTableYAxis = (uint16_t)0;
2022-09-01 16:18:26 -07:00
/**
2022-11-05 17:28:03 -07:00
* @@GAUGE_NAME_TARGET_LAMBDA@@
2023-01-14 13:08:25 -08:00
* offset 30
2022-09-01 16:18:26 -07:00
*/
2022-11-05 17:28:03 -07:00
scaled_channel<uint16_t, 10000, 1> targetLambda = (uint16_t)0;
2022-09-01 16:18:26 -07:00
/**
2022-11-05 17:28:03 -07:00
* @@GAUGE_NAME_TARGET_AFR@@
ratio
2023-01-14 13:08:25 -08:00
* offset 32
2022-09-01 16:18:26 -07:00
*/
2022-11-05 17:28:03 -07:00
scaled_channel<uint16_t, 1000, 1> targetAFR = (uint16_t)0;
2022-09-01 16:18:26 -07:00
/**
2022-11-05 17:28:03 -07:00
* fuel: stoich ratio
ratio
2023-01-14 13:08:25 -08:00
* offset 34
2022-09-01 16:18:26 -07:00
*/
2022-11-05 17:28:03 -07:00
scaled_channel<uint16_t, 1000, 1> stoichiometricRatio = (uint16_t)0;
/**
2023-01-14 13:08:25 -08:00
* offset 36
*/
float sdTcharge_coff = (float)0;
/**
2022-11-01 14:00:55 -07:00
* SD cylinder mass
* Speed-density logic: calculated air mass in one cylinder, in grams
2023-01-14 13:08:25 -08:00
* offset 40
*/
float sdAirMassInOneCylinder = (float)0;
/**
2023-01-14 13:08:25 -08:00
offset 44 bit 0 */
bool sdIsTChargeAirModel : 1 {};
/**
2023-01-14 13:08:25 -08:00
offset 44 bit 1 */
bool unusedBit_9_1 : 1 {};
/**
2023-01-14 13:08:25 -08:00
offset 44 bit 2 */
bool unusedBit_9_2 : 1 {};
/**
2023-01-14 13:08:25 -08:00
offset 44 bit 3 */
bool unusedBit_9_3 : 1 {};
/**
2023-01-14 13:08:25 -08:00
offset 44 bit 4 */
bool unusedBit_9_4 : 1 {};
/**
2023-01-14 13:08:25 -08:00
offset 44 bit 5 */
bool unusedBit_9_5 : 1 {};
/**
2023-01-14 13:08:25 -08:00
offset 44 bit 6 */
bool unusedBit_9_6 : 1 {};
/**
2023-01-14 13:08:25 -08:00
offset 44 bit 7 */
bool unusedBit_9_7 : 1 {};
/**
2023-01-14 13:08:25 -08:00
offset 44 bit 8 */
bool unusedBit_9_8 : 1 {};
/**
2023-01-14 13:08:25 -08:00
offset 44 bit 9 */
bool unusedBit_9_9 : 1 {};
/**
2023-01-14 13:08:25 -08:00
offset 44 bit 10 */
bool unusedBit_9_10 : 1 {};
/**
2023-01-14 13:08:25 -08:00
offset 44 bit 11 */
bool unusedBit_9_11 : 1 {};
/**
2023-01-14 13:08:25 -08:00
offset 44 bit 12 */
bool unusedBit_9_12 : 1 {};
/**
2023-01-14 13:08:25 -08:00
offset 44 bit 13 */
bool unusedBit_9_13 : 1 {};
/**
2023-01-14 13:08:25 -08:00
offset 44 bit 14 */
bool unusedBit_9_14 : 1 {};
/**
2023-01-14 13:08:25 -08:00
offset 44 bit 15 */
bool unusedBit_9_15 : 1 {};
/**
2023-01-14 13:08:25 -08:00
offset 44 bit 16 */
bool unusedBit_9_16 : 1 {};
/**
2023-01-14 13:08:25 -08:00
offset 44 bit 17 */
bool unusedBit_9_17 : 1 {};
/**
2023-01-14 13:08:25 -08:00
offset 44 bit 18 */
bool unusedBit_9_18 : 1 {};
/**
2023-01-14 13:08:25 -08:00
offset 44 bit 19 */
bool unusedBit_9_19 : 1 {};
/**
2023-01-14 13:08:25 -08:00
offset 44 bit 20 */
bool unusedBit_9_20 : 1 {};
/**
2023-01-14 13:08:25 -08:00
offset 44 bit 21 */
bool unusedBit_9_21 : 1 {};
/**
2023-01-14 13:08:25 -08:00
offset 44 bit 22 */
bool unusedBit_9_22 : 1 {};
/**
2023-01-14 13:08:25 -08:00
offset 44 bit 23 */
bool unusedBit_9_23 : 1 {};
/**
2023-01-14 13:08:25 -08:00
offset 44 bit 24 */
bool unusedBit_9_24 : 1 {};
/**
2023-01-14 13:08:25 -08:00
offset 44 bit 25 */
bool unusedBit_9_25 : 1 {};
/**
2023-01-14 13:08:25 -08:00
offset 44 bit 26 */
bool unusedBit_9_26 : 1 {};
/**
2023-01-14 13:08:25 -08:00
offset 44 bit 27 */
bool unusedBit_9_27 : 1 {};
/**
2023-01-14 13:08:25 -08:00
offset 44 bit 28 */
bool unusedBit_9_28 : 1 {};
/**
2023-01-14 13:08:25 -08:00
offset 44 bit 29 */
bool unusedBit_9_29 : 1 {};
/**
2023-01-14 13:08:25 -08:00
offset 44 bit 30 */
bool unusedBit_9_30 : 1 {};
/**
2023-01-14 13:08:25 -08:00
offset 44 bit 31 */
bool unusedBit_9_31 : 1 {};
2022-09-01 16:18:26 -07:00
};
2023-01-14 13:08:25 -08:00
static_assert(sizeof(fuel_computer_s) == 48);
2022-09-01 16:18:26 -07:00
// end
2023-01-16 05:47:18 -08:00
// this section was generated automatically by rusEFI tool ConfigDefinition.jar based on (unknown script) controllers/algo/fuel/fuel_computer.txt Mon Jan 16 13:46:12 UTC 2023