This is the main method of the UltrasoundDetector class and it is
used for testing N samples for the presence of the frequency
specified by TARGET_FREQUENCY.
The DatagramListener class is a thread that continuously listens for
datagram packets, notifying a DatagramUpdateListener object whenever
a packet is received.
This class provides location awareness to the granularity of a room
inside a building based on the reception of 802.11 broadcasts and the
corresponding detection of ultrasound.
The UltrasoundAnalyzer thread first concatenates the array of
bytes into 16-bit little endian samples, then uses the
UltrasoundDetector to determine whether or not the samples
contain ultrasound and notifies the UltrasoundListener
accordingly.
The UltrasoundAnalyzer thread class takes an array of bytes,
concatenates them into 16-bit values in little endian format, then
creates an UltrasoundDetector object to decide whether or not
the samples contain the desired frequency.
This class is a thread that continuously listens for ultrasound
through the microphone and notifies the UltrasoundUpdateListener it
was instantiated with whenever ultrasound is detected.