mirror of
https://github.com/DarthAffe/OBD.NET.git
synced 2025-12-12 16:58:30 +00:00
30 lines
646 B
C#
30 lines
646 B
C#
using OBD.NET.Common.DataTypes;
|
|
|
|
namespace OBD.NET.Common.OBDData
|
|
{
|
|
public class OxygenSensor3FuelTrim : AbstractOBDData
|
|
{
|
|
#region Properties & Fields
|
|
|
|
public Volt Voltage => new Volt(A / 200.0, 0, 1.275);
|
|
public Percent ShortTermFuelTrim => new Percent((B / 1.28) - 100, -100, 99.2);
|
|
public bool IsSensorUsed => B != 0xFF;
|
|
|
|
#endregion
|
|
|
|
#region Constructors
|
|
|
|
public OxygenSensor3FuelTrim()
|
|
: base(0x16, 2)
|
|
{ }
|
|
|
|
#endregion
|
|
|
|
#region Methods
|
|
|
|
public override string ToString() => ShortTermFuelTrim.ToString();
|
|
|
|
#endregion
|
|
}
|
|
}
|