Deduplicate code for sending out RobotState messages

Change-Id: Idcf7c9e375f574ec3711ed16a1959925ee3343af
diff --git a/frc971/wpilib/BUILD b/frc971/wpilib/BUILD
index a47fbc4..729c5ca 100644
--- a/frc971/wpilib/BUILD
+++ b/frc971/wpilib/BUILD
@@ -140,3 +140,18 @@
     '//aos/common/logging:queue_logging',
   ],
 )
+
+cc_library(
+  name = 'wpilib_interface',
+  srcs = [
+    'wpilib_interface.cc',
+  ],
+  hdrs = [
+    'wpilib_interface.h',
+  ],
+  deps = [
+    '//aos/common/messages:robot_state',
+    '//aos/externals:wpilib',
+    '//aos/common/logging:queue_logging',
+  ],
+)