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)
|
|
|
|
{}
|
|
|
|
|
2021-06-30 21:05:42 -07:00
|
|
|
AirmassResult getAirmass(int rpm) override;
|
2021-01-31 14:19:06 -08:00
|
|
|
|
|
|
|
float getMap(int rpm) const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
const ValueProvider3D* const m_mapEstimationTable;
|
2020-07-24 19:30:12 -07:00
|
|
|
};
|