2020-07-23 01:23:57 -07:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "airmass.h"
|
|
|
|
|
2021-05-14 04:17:22 -07:00
|
|
|
class MafAirmass final : public AirmassVeModelBase {
|
2020-07-23 01:23:57 -07:00
|
|
|
public:
|
2021-05-14 04:17:22 -07:00
|
|
|
explicit MafAirmass(const ValueProvider3D& veTable) : AirmassVeModelBase(veTable) {}
|
2020-07-23 01:23:57 -07:00
|
|
|
|
2024-09-24 23:21:39 -07:00
|
|
|
AirmassResult getAirmass(float rpm, bool postState) override;
|
2020-07-23 01:23:57 -07:00
|
|
|
|
|
|
|
// Compute airmass based on flow & engine speed
|
2024-09-24 23:21:39 -07:00
|
|
|
AirmassResult getAirmassImpl(float massAirFlow, float rpm, bool postState) const;
|
2022-10-24 09:41:05 -07:00
|
|
|
|
|
|
|
private:
|
|
|
|
float getMaf() const;
|
2020-07-23 01:23:57 -07:00
|
|
|
};
|