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:
|
|
|
|
/**
|
|
|
|
* @param target desired squirt duration
|
|
|
|
* @return total adjusted fuel squirt duration once wall wetting is taken into effect
|
|
|
|
*/
|
2021-11-16 01:15:29 -08:00
|
|
|
floatms_t adjust(floatms_t target);
|
2021-10-16 17:16:40 -07:00
|
|
|
floatms_t getWallFuel() const;
|
|
|
|
void resetWF();
|
|
|
|
int invocationCounter = 0;
|
|
|
|
};
|