Exemple #1
0
 private static void Update_push <Action>(GenericSensor <int, decimal> sensor, int map, int value)
 {
     if (value == inputs[map])
     {
         return;
     }
     value = inputs[map];
     sensor.SetValue(value);
 }
Exemple #2
0
        private static void Update_position <Action>(GenericSensor <Position, Position> sensor, int map, Position value)
        {
            try
            {
                value.Longitude = position.Longitude;
            } catch
            {
                value           = new Position();
                value.Longitude = position.Longitude;
            }

            value.Latitude = position.Latitude;

            sensor.SetValue(value);
        }
Exemple #3
0
 private static void Update_poll <Action>(GenericSensor <int, decimal> sensor, int map, int value)
 {
     value = inputs[map];
     sensor.SetValue(value);
 }