public void addRangeReading(RangeReading rr) { lock (angles) { if (angles.ContainsKey(rr.angleRaw)) { angles.Remove(rr.angleRaw); } angles.Add(rr.angleRaw, rr); purge(); } }
public void addRangeReading(int angleRaw, double rangeMeters, long timestamp) { RangeReading rr = new RangeReading(angleRaw, rangeMeters, timestamp); addRangeReading(rr); }