using OBD.NET.DataTypes;

namespace OBD.NET.OBDData
{
    public class OxygenSensor1FuelAir2 : 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 OxygenSensor1FuelAir2()
            : base(0x34, 4)
        { }

        #endregion
    }
}
