fome-fw/firmware/controllers/algo/airmass/speed_density_base.h

23 lines
575 B
C
Raw Normal View History

2020-07-22 18:24:20 -07:00
/**
* @file speed_density_base.h
*
* Base for speed density (ie, ideal gas law) math shared by multiple fueling modes.
*
* @date July 22, 2020
* @author Matthew Kennedy, (C) 2020
*/
2020-07-22 13:11:07 -07:00
#pragma once
2020-07-24 19:30:12 -07:00
#include "airmass.h"
2020-07-22 13:11:07 -07:00
float idealGasLaw(float volume, float pressure, float temperature);
2020-07-24 19:30:12 -07:00
class SpeedDensityBase : public AirmassModelBase {
protected:
2020-07-29 02:23:03 -07:00
explicit SpeedDensityBase(const ValueProvider3D& veTable) : AirmassModelBase(veTable) {}
2020-07-24 19:30:12 -07:00
2020-07-22 13:11:07 -07:00
public:
static float getAirmassImpl(float ve, float manifoldPressure, float temperature DECLARE_ENGINE_PARAMETER_SUFFIX);
};