From ba758dd5cb86ecc106d58dab8613925d705bcc7a Mon Sep 17 00:00:00 2001 From: Andrey Date: Thu, 20 May 2021 02:36:55 -0400 Subject: [PATCH] refactoring magic constant STOICH_RATIO --- firmware/controllers/algo/rusefi_types.h | 3 +++ firmware/hw_layer/sensors/cj125.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/firmware/controllers/algo/rusefi_types.h b/firmware/controllers/algo/rusefi_types.h index 9ce312812e..0791eb61bf 100644 --- a/firmware/controllers/algo/rusefi_types.h +++ b/firmware/controllers/algo/rusefi_types.h @@ -26,6 +26,9 @@ typedef unsigned int time_t; #define DEFAULT_FUEL_LOAD_COUNT 16 #define DEFAULT_IGN_LOAD_COUNT 16 +// gasoline E0 +#define STOICH_RATIO 14.7f + // time in seconds typedef time_t efitimesec_t; diff --git a/firmware/hw_layer/sensors/cj125.h b/firmware/hw_layer/sensors/cj125.h index d41a8c5384..ed6ce74fdd 100644 --- a/firmware/hw_layer/sensors/cj125.h +++ b/firmware/hw_layer/sensors/cj125.h @@ -91,7 +91,7 @@ #define CJ125_VOLTAGE_TO_16BIT_FACTOR 4096.0f #define CJ125_PUMP_SHUNT_RESISTOR 61.9f -#define CJ125_STOICH_RATIO 14.7f +#define CJ125_STOICH_RATIO STOICH_RATIO #define CJ125_PUMP_CURRENT_FACTOR 1000.0f // Returned if there's no valid measurement