2024-02-17 15:39:54 -08:00
// this section was generated automatically by rusEFI tool config_definition_base-all.jar based on (unknown script) controllers/algo/fuel/fuel_computer.txt Sat Feb 17 23:38:05 UTC 2024
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 {
/**
2023-05-05 10:57:39 -07:00
* Fuel : Post cranking mult
2023-01-14 13:08:25 -08:00
* 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 ;
/**
2024-01-03 12:32:11 -08:00
* units : secs
2023-01-14 13:08:25 -08:00
* offset 12
*/
float timeSinceCrankingInSecs = ( float ) 0 ;
/**
2023-05-05 10:57:39 -07:00
* @ @ GAUGE_NAME_FUEL_BASE @ @
* This is the raw value we take from the fuel map or base fuel algorithm , before the corrections
2024-01-03 12:32:11 -08:00
* units : mg
2023-01-14 13:08:25 -08:00
* offset 16
*/
2023-05-05 10:57:39 -07:00
scaled_channel < uint16_t , 100 , 1 > baseFuel = ( uint16_t ) 0 ;
/**
* @ @ GAUGE_NAME_FUEL_RUNNING @ @
* Total fuel with CLT IAT and TPS acceleration without injector lag corrections per cycle , as pulse per cycle
2024-01-03 12:32:11 -08:00
* units : mg
2023-05-05 10:57:39 -07:00
* offset 18
2023-01-14 13:08:25 -08:00
*/
2023-05-05 10:57:39 -07:00
scaled_channel < uint16_t , 100 , 1 > fuel = ( uint16_t ) 0 ;
2023-01-14 13:08:25 -08:00
} ;
2023-05-05 10:57:39 -07:00
static_assert ( sizeof ( running_fuel_s ) = = 20 ) ;
2023-01-14 13:08:25 -08:00
2022-09-01 16:18:26 -07:00
// start of fuel_computer_s
struct fuel_computer_s {
/**
2023-05-05 10:57:39 -07:00
* Fuel : Total correction
2024-01-03 12:32:11 -08:00
* units : 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 ;
/**
2024-01-03 12:32:11 -08:00
* units : %
2023-05-05 10:57:39 -07:00
* offset 24
2023-01-14 13:08:25 -08:00
*/
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-05-05 10:57:39 -07:00
* offset 26
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 @ @
2024-01-03 12:32:11 -08:00
* units : ratio
2023-05-05 10:57:39 -07:00
* offset 28
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
/**
2023-05-05 10:57:39 -07:00
* Fuel : Stoich ratio
2024-01-03 12:32:11 -08:00
* units : ratio
2023-05-05 10:57:39 -07:00
* offset 30
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 ;
2022-09-03 04:44:24 -07:00
/**
2023-05-05 10:57:39 -07:00
* offset 32
2022-09-03 04:44:24 -07:00
*/
float sdTcharge_coff = ( float ) 0 ;
/**
2023-05-05 10:57:39 -07:00
* @ @ GAUGE_NAME_AIR_MASS @ @
2024-01-03 12:32:11 -08:00
* units : g
2023-05-05 10:57:39 -07:00
* offset 36
2022-09-03 04:44:24 -07:00
*/
float sdAirMassInOneCylinder = ( float ) 0 ;
/**
2023-09-17 07:02:43 -07:00
* Air : Normalized cyl filling
2024-01-03 12:32:11 -08:00
* units : %
2023-09-17 07:02:43 -07:00
* offset 40
*/
float normalizedCylinderFilling = ( float ) 0 ;
/**
2023-11-23 06:54:29 -08:00
* offset 44
*/
uint8_t brokenInjector = ( uint8_t ) 0 ;
/**
* offset 45
*/
2024-02-17 15:39:54 -08:00
uint8_t unused88 = ( uint8_t ) 0 ;
/**
* offset 46
*/
uint16_t idealEngineTorque = ( uint16_t ) 0 ;
2023-11-23 06:54:29 -08:00
/**
offset 48 bit 0 */
2023-03-19 00:20:43 -07:00
bool injectorHwIssue : 1 { } ;
2022-09-03 04:44:24 -07:00
/**
2023-11-23 06:54:29 -08:00
offset 48 bit 1 */
2024-02-17 15:39:54 -08:00
bool unusedBit_13_1 : 1 { } ;
2023-05-05 10:57:39 -07:00
/**
2023-11-23 06:54:29 -08:00
offset 48 bit 2 */
2024-02-17 15:39:54 -08:00
bool unusedBit_13_2 : 1 { } ;
2022-09-03 04:44:24 -07:00
/**
2023-11-23 06:54:29 -08:00
offset 48 bit 3 */
2024-02-17 15:39:54 -08:00
bool unusedBit_13_3 : 1 { } ;
2022-09-03 04:44:24 -07:00
/**
2023-11-23 06:54:29 -08:00
offset 48 bit 4 */
2024-02-17 15:39:54 -08:00
bool unusedBit_13_4 : 1 { } ;
2022-09-03 04:44:24 -07:00
/**
2023-11-23 06:54:29 -08:00
offset 48 bit 5 */
2024-02-17 15:39:54 -08:00
bool unusedBit_13_5 : 1 { } ;
2022-09-03 04:44:24 -07:00
/**
2023-11-23 06:54:29 -08:00
offset 48 bit 6 */
2024-02-17 15:39:54 -08:00
bool unusedBit_13_6 : 1 { } ;
2022-09-03 04:44:24 -07:00
/**
2023-11-23 06:54:29 -08:00
offset 48 bit 7 */
2024-02-17 15:39:54 -08:00
bool unusedBit_13_7 : 1 { } ;
2022-09-03 04:44:24 -07:00
/**
2023-11-23 06:54:29 -08:00
offset 48 bit 8 */
2024-02-17 15:39:54 -08:00
bool unusedBit_13_8 : 1 { } ;
2022-09-03 04:44:24 -07:00
/**
2023-11-23 06:54:29 -08:00
offset 48 bit 9 */
2024-02-17 15:39:54 -08:00
bool unusedBit_13_9 : 1 { } ;
2022-09-03 04:44:24 -07:00
/**
2023-11-23 06:54:29 -08:00
offset 48 bit 10 */
2024-02-17 15:39:54 -08:00
bool unusedBit_13_10 : 1 { } ;
2022-09-03 04:44:24 -07:00
/**
2023-11-23 06:54:29 -08:00
offset 48 bit 11 */
2024-02-17 15:39:54 -08:00
bool unusedBit_13_11 : 1 { } ;
2022-09-03 04:44:24 -07:00
/**
2023-11-23 06:54:29 -08:00
offset 48 bit 12 */
2024-02-17 15:39:54 -08:00
bool unusedBit_13_12 : 1 { } ;
2022-09-03 04:44:24 -07:00
/**
2023-11-23 06:54:29 -08:00
offset 48 bit 13 */
2024-02-17 15:39:54 -08:00
bool unusedBit_13_13 : 1 { } ;
2022-09-03 04:44:24 -07:00
/**
2023-11-23 06:54:29 -08:00
offset 48 bit 14 */
2024-02-17 15:39:54 -08:00
bool unusedBit_13_14 : 1 { } ;
2022-09-03 04:44:24 -07:00
/**
2023-11-23 06:54:29 -08:00
offset 48 bit 15 */
2024-02-17 15:39:54 -08:00
bool unusedBit_13_15 : 1 { } ;
2022-09-03 04:44:24 -07:00
/**
2023-11-23 06:54:29 -08:00
offset 48 bit 16 */
2024-02-17 15:39:54 -08:00
bool unusedBit_13_16 : 1 { } ;
2022-09-03 04:44:24 -07:00
/**
2023-11-23 06:54:29 -08:00
offset 48 bit 17 */
2024-02-17 15:39:54 -08:00
bool unusedBit_13_17 : 1 { } ;
2022-09-03 04:44:24 -07:00
/**
2023-11-23 06:54:29 -08:00
offset 48 bit 18 */
2024-02-17 15:39:54 -08:00
bool unusedBit_13_18 : 1 { } ;
2022-09-03 04:44:24 -07:00
/**
2023-11-23 06:54:29 -08:00
offset 48 bit 19 */
2024-02-17 15:39:54 -08:00
bool unusedBit_13_19 : 1 { } ;
2022-09-03 04:44:24 -07:00
/**
2023-11-23 06:54:29 -08:00
offset 48 bit 20 */
2024-02-17 15:39:54 -08:00
bool unusedBit_13_20 : 1 { } ;
2022-09-03 04:44:24 -07:00
/**
2023-11-23 06:54:29 -08:00
offset 48 bit 21 */
2024-02-17 15:39:54 -08:00
bool unusedBit_13_21 : 1 { } ;
2022-09-03 04:44:24 -07:00
/**
2023-11-23 06:54:29 -08:00
offset 48 bit 22 */
2024-02-17 15:39:54 -08:00
bool unusedBit_13_22 : 1 { } ;
2022-09-03 04:44:24 -07:00
/**
2023-11-23 06:54:29 -08:00
offset 48 bit 23 */
2024-02-17 15:39:54 -08:00
bool unusedBit_13_23 : 1 { } ;
2022-09-03 04:44:24 -07:00
/**
2023-11-23 06:54:29 -08:00
offset 48 bit 24 */
2024-02-17 15:39:54 -08:00
bool unusedBit_13_24 : 1 { } ;
2022-09-03 04:44:24 -07:00
/**
2023-11-23 06:54:29 -08:00
offset 48 bit 25 */
2024-02-17 15:39:54 -08:00
bool unusedBit_13_25 : 1 { } ;
2022-09-03 04:44:24 -07:00
/**
2023-11-23 06:54:29 -08:00
offset 48 bit 26 */
2024-02-17 15:39:54 -08:00
bool unusedBit_13_26 : 1 { } ;
2022-09-03 04:44:24 -07:00
/**
2023-11-23 06:54:29 -08:00
offset 48 bit 27 */
2024-02-17 15:39:54 -08:00
bool unusedBit_13_27 : 1 { } ;
2022-09-03 04:44:24 -07:00
/**
2023-11-23 06:54:29 -08:00
offset 48 bit 28 */
2024-02-17 15:39:54 -08:00
bool unusedBit_13_28 : 1 { } ;
2022-09-03 04:44:24 -07:00
/**
2023-11-23 06:54:29 -08:00
offset 48 bit 29 */
2024-02-17 15:39:54 -08:00
bool unusedBit_13_29 : 1 { } ;
2022-09-03 04:44:24 -07:00
/**
2023-11-23 06:54:29 -08:00
offset 48 bit 30 */
2024-02-17 15:39:54 -08:00
bool unusedBit_13_30 : 1 { } ;
2022-09-03 04:44:24 -07:00
/**
2023-11-23 06:54:29 -08:00
offset 48 bit 31 */
2024-02-17 15:39:54 -08:00
bool unusedBit_13_31 : 1 { } ;
2022-09-01 16:18:26 -07:00
} ;
2023-11-23 06:54:29 -08:00
static_assert ( sizeof ( fuel_computer_s ) = = 52 ) ;
2022-09-01 16:18:26 -07:00
// end
2024-02-17 15:39:54 -08:00
// this section was generated automatically by rusEFI tool config_definition_base-all.jar based on (unknown script) controllers/algo/fuel/fuel_computer.txt Sat Feb 17 23:38:05 UTC 2024