refactoring magic constant STOICH_RATIO

This commit is contained in:
Andrey 2021-05-20 02:36:55 -04:00
parent 3ff4e48712
commit ba758dd5cb
2 changed files with 4 additions and 1 deletions

View File

@ -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;

View File

@ -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