Initial Commit

Add data structure for sending measurement data.

BUG=b:148627899
TEST=None

Change-Id: I3a01e0635f3afe7bdeb5bafb1cae88839eee272b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/optofidelity_protocols/+/2515463
Commit-Queue: Sean O'Brien <seobrien@chromium.org>
Tested-by: Sean O'Brien <seobrien@chromium.org>
Reviewed-by: Harry Cutts <hcutts@chromium.org>
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..8d31e42
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,27 @@
+Copyright (c) 2020 The Chromium OS Authors. All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are
+met:
+
+   * Redistributions of source code must retain the above copyright
+notice, this list of conditions and the following disclaimer.
+   * Redistributions in binary form must reproduce the above
+copyright notice, this list of conditions and the following disclaimer
+in the documentation and/or other materials provided with the
+distribution.
+   * Neither the name of Google Inc. nor the names of its
+contributors may be used to endorse or promote products derived from
+this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\ No newline at end of file
diff --git a/__init__.py b/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/__init__.py
diff --git a/dut.py b/dut.py
new file mode 100644
index 0000000..0cd076c
--- /dev/null
+++ b/dut.py
@@ -0,0 +1,14 @@
+# Copyright 2020 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+"""This module holds the data structures used for communication between
+Optofidelity DUT software and test software.
+"""
+
+from collections import namedtuple
+
+Measurement = namedtuple('Measurement', ['panel_x', 'panel_y', 'pressure',
+                                         'finger_id', 'delay', 'time', 'event',
+                                         'yaw', 'tilt', 'UNKNOWN'])
+Measurement.__new__.__defaults__ = (0.0,) * 3
diff --git a/unblocked_terms.txt b/unblocked_terms.txt
new file mode 100644
index 0000000..9d70b90
--- /dev/null
+++ b/unblocked_terms.txt
@@ -0,0 +1,38 @@
+# KEEP THIS COMMENT IN YOUR COPY.
+#
+# Don't delete this file if you want to keep keyword_check enabled even if it's
+# empty.
+#
+# See repohooks/README.md for more details.
+
+# black.?hat
+# black.?list
+# build.?cop
+# crazy
+# cripple
+# dummy
+# first.?class.?citizen
+# grandfathered
+# gr[ae]y.?hat
+# gr[ae]y.?list
+# insane
+# \bhe\b
+# \bshe\b
+# \bhim\b
+# \bher\b
+# \bhis\b
+# \bhers\b
+# man.?in.?the.?middle
+# master
+# \bmitm(\b|\d)
+# \bnative
+# \bred.?line
+# rtfm
+# sane
+# sanity
+# slave
+# white.?glove
+# white.?hat
+# white.?label
+# white.?list
+# \bwtf