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
528 B
C#
23 lines
528 B
C#
using OBD.NET.DataTypes;
|
|
|
|
namespace OBD.NET.OBDData
|
|
{
|
|
public class OxygenSensor5FuelAir : AbstractOBDData
|
|
{
|
|
#region Properties & Fields
|
|
|
|
public Ratio FuelAirEquivalenceRatio => new Ratio((2.0 / 25536.0) * ((256 * A) + B), 0, 2 - double.Epsilon);
|
|
public Volt Voltage => new Volt((80 / 25536.0) * ((256 * C) + D), 0, 8 - double.Epsilon);
|
|
|
|
#endregion
|
|
|
|
#region Constructors
|
|
|
|
public OxygenSensor5FuelAir()
|
|
: base(0x28, 4)
|
|
{ }
|
|
|
|
#endregion
|
|
}
|
|
}
|