Пример #1
0
        public int CurrentDirection()
        {
            var direction = _windStorage.GetLastValueAsync().Result.Direction;

            return(direction);
        }
Пример #2
0
        public PhysicalValue <SpeedUnit> CurrentSpeed()
        {
            var speed = new PhysicalValue <SpeedUnit>(_windStorage.GetLastValueAsync().Result.Speed, SpeedUnit.MetersPerSecond);

            return(speed);
        }