rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Data Structures | Functions
throttle_model.h File Reference

Data Structures

struct  ThrottleModelBase
 
class  ThrottleModel
 

Functions

expected< floatgetThrottleInletPressure ()
 
float getThrottlePressureRatio (float map)
 

Function Documentation

◆ getThrottleInletPressure()

expected< float > getThrottleInletPressure ( )

Definition at line 121 of file throttle_model.cpp.

121 {
122 // Use TIP sensor
123 // or use Baro sensor if no TIP
124 // or use 101.325kPa (std atmosphere) if no Baro
127 SensorResult(STD_ATMOSPHERE);
128}
virtual bool hasSensor() const
Definition sensor.h:141
virtual SensorResult get() const =0
expected< float > SensorResult
Definition sensor.h:46
SensorType
Definition sensor_type.h:18
@ ThrottleInletPressure
@ BarometricPressure

Referenced by ThrottleModelBase::estimateThrottleFlow(), and getThrottlePressureRatio().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getThrottlePressureRatio()

float getThrottlePressureRatio ( float  map)

Definition at line 130 of file throttle_model.cpp.

130 {
131 return map / getThrottleInletPressure().Value;
132}
expected< float > getThrottleInletPressure()

Referenced by readGppwmChannel(), and updatePressures().

Here is the call graph for this function:
Here is the caller graph for this function:

Go to the source code of this file.