mirror of
https://github.com/DarthAffe/OBD.NET.git
synced 2025-12-12 16:58:30 +00:00
28 lines
559 B
C#
28 lines
559 B
C#
using OBD.NET.DataTypes;
|
|
|
|
namespace OBD.NET.OBDData._00_1F;
|
|
|
|
public class OxygenSensor3FuelTrim : AbstractOBDData
|
|
{
|
|
#region Properties & Fields
|
|
|
|
public Volt Voltage => new(A / 200.0, 0, 1.275);
|
|
public Percent ShortTermFuelTrim => new((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
|
|
} |