2021-10-03 20:37:53 +00:00
|
|
|
using Newtonsoft.Json.Linq;
|
2020-08-01 15:07:13 +00:00
|
|
|
using NucuCar.Telemetry.Abstractions;
|
2019-12-17 19:54:38 +00:00
|
|
|
|
2020-08-01 15:07:13 +00:00
|
|
|
namespace NucuCar.Sensors.Abstractions
|
2019-12-17 19:54:38 +00:00
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// The GenericSensor is an abstract class, which provides a base for abstracting hardware sensors
|
|
|
|
/// with telemetry support.
|
|
|
|
/// See: <see cref="ITelemeter"/>
|
2021-08-01 17:35:54 +00:00
|
|
|
/// See: <see cref="NucuCar.Sensors.Abstractions.GenericSensor"/>
|
2019-12-17 19:54:38 +00:00
|
|
|
/// </summary>
|
|
|
|
public abstract class GenericTelemeterSensor : GenericSensor, ITelemeter
|
|
|
|
{
|
2020-01-26 10:52:09 +00:00
|
|
|
protected bool TelemetryEnabled;
|
2019-12-17 19:54:38 +00:00
|
|
|
public abstract string GetIdentifier();
|
2021-10-03 20:37:53 +00:00
|
|
|
public abstract JObject GetTelemetryJson();
|
2020-01-26 10:52:09 +00:00
|
|
|
public abstract bool IsTelemetryEnabled();
|
2019-12-17 19:54:38 +00:00
|
|
|
}
|
|
|
|
}
|