public ObdState GetCurrentState() { var os = new ObdState(); //run the object builder routine. return(os); }
private void SetInstrumentClusterValues(ObdState measurement) { foreach (var item in _skins) { if (!item.IsVisible) { continue; } item.IsMalfunctionVisible = measurement.MilLightOn; item.IsLowFuelVisible = item.Fuel < 10; item.MPG = measurement.MilesPerGallon; item.MPH = measurement.MilesPerHour; item.RPM = measurement.Rpm; item.Fuel = measurement.FuelLevel; item.Temperature = measurement.EngineCoolantTemperature; } }
public override void OnNext(ObdState value) { State = value.ToJson(); Debug.WriteLine(value.ToJson()); }