2021-10-16 17:16:40 -07:00
|
|
|
/*
|
|
|
|
* @file wall_fuel.h
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Wall wetting, also known as fuel film
|
|
|
|
* See https://github.com/rusefi/rusefi/issues/151 for the theory
|
|
|
|
*/
|
|
|
|
class WallFuel : public wall_fuel_state {
|
|
|
|
public:
|
|
|
|
/**
|
2021-11-25 15:45:44 -08:00
|
|
|
* @param desiredMassGrams desired fuel quantity, in grams
|
|
|
|
* @return total adjusted fuel squirt mass in grams once wall wetting is taken into effect
|
2021-10-16 17:16:40 -07:00
|
|
|
*/
|
2021-11-25 15:45:44 -08:00
|
|
|
float adjust(float desiredMassGrams);
|
|
|
|
float getWallFuel() const;
|
2021-10-16 17:16:40 -07:00
|
|
|
void resetWF();
|
|
|
|
int invocationCounter = 0;
|
|
|
|
};
|