Exemple #1
0
 /// <summary>
 /// Constructor with default Lookup Table
 /// </summary>
 public Distancing(LookupTable.DistanceType Type, LookupTable Lookup,LookupTable.Axis Axis)
 {
     LookupDistances = Lookup.GetLookupTable(Type, Axis);
     this.Type = Type;
 }
Exemple #2
0
        internal void Initalize(int Distance_Start, int Distance_End, int Distance_interval, LookupTable.Axis ID, ComPort Reader)
        {
            List<Tag> Tags;

            //Start Distance of the configuration
            int Distance = Distance_Start;
            MessageBox.Show("Information",string.Format("Please put tag at {0}cm then press enter", Distance), MessageBoxButtons.OK);

            while (Distance < Distance_End)
            {

                List<Tag> ListRead = new List<Tag>();
                while (ListRead.Count < Configutation_num_reads)
                {
                    //Seach for tags with RSSI
                    Tags = Inventory.StartTagInventory(Reader);

                    //if more then 1 tag found and does not contain SHIT
                    //Then we read the tag and increment Read
                    if (Tags.Count > 0)
                        if (!Tags[0].ID.Contains("SHIT"))
                        {
                            ListRead.Add(Tags[0]);
                            Debug.WriteLine("I:{0}, Q:{1}", Tags[0].I, Tags[0].Q);
                        }
                    //Sleep thread to get accurate measurements each time
                    //Has to be adjusted so we do not overflow the reader
                    // Console.WriteLine("Attempt:{0}",iter);
                    //System.Threading.Thread.Sleep(SleepTimer);
                }
                Data.Add_Tags(Distance, ListRead,ID);
                Distance += Distance_interval;
                MessageBox.Show("Information",string.Format("Please put tag at {0}cm then press enter", Distance), MessageBoxButtons.OK);

            }
        }
Exemple #3
0
 public LookupData(Tag r, int Distance_2, LookupTable.Axis axis)
     : this(r,Distance_2)
 {
     this.Reciver = (int)axis;
 }