mirror of
https://github.com/DarthAffe/OBD.NET.git
synced 2025-12-12 16:58:30 +00:00
28 lines
526 B
C#
28 lines
526 B
C#
using OBD.NET.Common.DataTypes;
|
|
|
|
namespace OBD.NET.Common.OBDData
|
|
{
|
|
public class DistanceTraveledWithMILOn : AbstractOBDData
|
|
{
|
|
#region Properties & Fields
|
|
|
|
public Kilometre Distance => new Kilometre((256 * A) + B, 0, 65535);
|
|
|
|
#endregion
|
|
|
|
#region Constructors
|
|
|
|
public DistanceTraveledWithMILOn()
|
|
: base(0x21, 2)
|
|
{ }
|
|
|
|
#endregion
|
|
|
|
#region Methods
|
|
|
|
public override string ToString() => Distance.ToString();
|
|
|
|
#endregion
|
|
}
|
|
}
|