2020-07-24 19:30:12 -07:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "speed_density_base.h"
|
|
|
|
|
|
|
|
class SpeedDensityAirmass : public SpeedDensityBase {
|
|
|
|
public:
|
2021-01-31 14:19:06 -08:00
|
|
|
explicit SpeedDensityAirmass(const ValueProvider3D& veTable, const ValueProvider3D& mapEstimationTable)
|
|
|
|
: SpeedDensityBase(veTable)
|
|
|
|
, m_mapEstimationTable(&mapEstimationTable)
|
|
|
|
{}
|
|
|
|
|
2023-05-15 17:18:35 -07:00
|
|
|
AirmassResult getAirmass(int rpm, bool postState) override;
|
|
|
|
AirmassResult getAirmass(float rpm, float map, bool postState);
|
|
|
|
float getAirflow(float rpm, float map, bool postState);
|
2021-01-31 14:19:06 -08:00
|
|
|
|
2023-05-15 17:18:35 -07:00
|
|
|
float getMap(int rpm, bool postState) const;
|
2021-01-31 14:19:06 -08:00
|
|
|
|
|
|
|
private:
|
|
|
|
const ValueProvider3D* const m_mapEstimationTable;
|
2020-07-24 19:30:12 -07:00
|
|
|
};
|