Esempio n. 1
0
        public ObdState GetCurrentState()
        {
            var os = new ObdState();

            //run the object builder routine.

            return(os);
        }
Esempio n. 2
0
        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;
            }
        }
Esempio n. 3
0
 public override void OnNext(ObdState value)
 {
     State = value.ToJson();
     Debug.WriteLine(value.ToJson());
 }