示例#1
0
 public data(MAV_SENSOR_ORIENTATION orientation, double distance, DateTime received, double age = 1)
 {
     Orientation = orientation;
     Distance    = distance;
     Received    = received;
     Age         = age;
 }
示例#2
0
 public data(uint id, MAV_SENSOR_ORIENTATION orientation, double distance, DateTime received, double age = 1)
 {
     SensorId    = id;
     Orientation = orientation;
     Distance    = distance;
     Received    = received;
     Age         = age;
 }
示例#3
0
 public data(uint id, double angle, double size, double distance, DateTime received, double age = 1)
 {
     SensorId    = id;
     Orientation = MAV_SENSOR_ORIENTATION.MAV_SENSOR_ROTATION_CUSTOM;
     Angle       = angle;
     Size        = size;
     Distance    = distance;
     Received    = received;
     Age         = age;
 }
示例#4
0
            public void Add(uint id, MAV_SENSOR_ORIENTATION orientation, double distance, DateTime received, double age = 1)
            {
                var existing = _dists.Where((a) => { return(a.SensorId == id && a.Orientation == orientation); });

                foreach (var item in existing.ToList())
                {
                    _dists.Remove(item);
                }

                _dists.Add(new data(id, orientation, distance, received, age));

                expire();
            }
示例#5
0
            public void Add(MAV_SENSOR_ORIENTATION orientation, double distance, DateTime received, double age = 1)
            {
                _dists.Add(new data(orientation, distance, received, age));

                expire();
            }
示例#6
0
            public void Add(uint id, MAV_SENSOR_ORIENTATION orientation, double distance, DateTime received, double age = 1)
            {
                var existing = _dists.Where((a) => { return a.Orientation == orientation; });

                foreach (var item in existing.ToList())
                {
                    _dists.Remove(item);
                }

                _dists.Add(new data(id, orientation, distance, received, age));

                expire();
            }
示例#7
0
 public data(uint id, MAV_SENSOR_ORIENTATION orientation, double distance, DateTime received, double age = 1)
 {
     SensorId = id;
     Orientation = orientation;
     Distance = distance;
     Received = received;
     Age = age;
 }