mirror of
https://github.com/DarthAffe/OBD.NET.git
synced 2025-12-13 01:08:30 +00:00
re-factored SerialConnection to ISerialConnection interface and removed stuff which is not compatible with NetStandard
23 lines
538 B
C#
23 lines
538 B
C#
using OBD.NET.DataTypes;
|
|
|
|
namespace OBD.NET.OBDData
|
|
{
|
|
public class OxygenSensor4FuelAir2 : AbstractOBDData
|
|
{
|
|
#region Properties & Fields
|
|
|
|
public Ratio FuelAirEquivalenceRatio => new Ratio((2.0 / 25536.0) * ((256 * A) + B), 0, 2 - double.Epsilon);
|
|
public Milliampere Current => new Milliampere(C + (D / 256.0) - 128, -128, 128 - double.Epsilon);
|
|
|
|
#endregion
|
|
|
|
#region Constructors
|
|
|
|
public OxygenSensor4FuelAir2()
|
|
: base(0x37, 4)
|
|
{ }
|
|
|
|
#endregion
|
|
}
|
|
}
|