mirror of
https://github.com/DarthAffe/OBD.NET.git
synced 2025-12-12 16:58:30 +00:00
Added EngineCoolantTemperatureSensor (0x67) and IntakeAirTemperatureSensor (0x68)
This commit is contained in:
parent
be454452d7
commit
3faefc97ca
@ -0,0 +1,29 @@
|
|||||||
|
using OBD.NET.Common.DataTypes;
|
||||||
|
|
||||||
|
namespace OBD.NET.Common.OBDData
|
||||||
|
{
|
||||||
|
public class EngineCoolantTemperatureSensor : AbstractOBDData
|
||||||
|
{
|
||||||
|
#region Properties & Fields
|
||||||
|
|
||||||
|
public int SensorsSupported => A;
|
||||||
|
public DegreeCelsius Sensor1 => new DegreeCelsius(B - 40, -40, 215);
|
||||||
|
public DegreeCelsius Sensor2 => new DegreeCelsius(C - 40, -40, 215);
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region Constructors
|
||||||
|
|
||||||
|
public EngineCoolantTemperatureSensor()
|
||||||
|
: base(0x67, 3)
|
||||||
|
{ }
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region Methods
|
||||||
|
|
||||||
|
public override string ToString() => Sensor1.ToString();
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,33 @@
|
|||||||
|
using OBD.NET.Common.DataTypes;
|
||||||
|
|
||||||
|
namespace OBD.NET.Common.OBDData
|
||||||
|
{
|
||||||
|
public class IntakeAirTemperatureSensor : AbstractOBDData
|
||||||
|
{
|
||||||
|
#region Properties & Fields
|
||||||
|
|
||||||
|
public int SensorsSupported => A;
|
||||||
|
public DegreeCelsius Bank1Sensor1 => new DegreeCelsius(B - 40, -40, 215);
|
||||||
|
public DegreeCelsius Bank1Sensor2 => new DegreeCelsius(C - 40, -40, 215);
|
||||||
|
public DegreeCelsius Bank1Sensor3 => new DegreeCelsius(D - 40, -40, 215);
|
||||||
|
public DegreeCelsius Bank2Sensor1 => new DegreeCelsius(E - 40, -40, 215);
|
||||||
|
public DegreeCelsius Bank2Sensor2 => new DegreeCelsius(RawData[5] - 40, -40, 215);
|
||||||
|
public DegreeCelsius Bank2Sensor3 => new DegreeCelsius(RawData[6] - 40, -40, 215);
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region Constructors
|
||||||
|
|
||||||
|
public IntakeAirTemperatureSensor()
|
||||||
|
: base(0x68, 7)
|
||||||
|
{ }
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region Methods
|
||||||
|
|
||||||
|
public override string ToString() => Bank1Sensor1.ToString();
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user