public data(MAV_SENSOR_ORIENTATION orientation, double distance, DateTime received, double age = 1) { Orientation = orientation; Distance = distance; Received = received; Age = age; }
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; }
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; }
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(); }
public void Add(MAV_SENSOR_ORIENTATION orientation, double distance, DateTime received, double age = 1) { _dists.Add(new data(orientation, distance, received, age)); expire(); }
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(); }