added TrapezoidProfile (copied from frc254-2011)

I cleaned it up extensively and added a couple of quick tests.

git-svn-id: https://robotics.mvla.net/svn/frc971/2013/trunk/src@4172 f308d9b7-e957-4cde-b6ac-9a88185e7312
diff --git a/aos/common/util/util.gyp b/aos/common/util/util.gyp
new file mode 100644
index 0000000..15f868f
--- /dev/null
+++ b/aos/common/util/util.gyp
@@ -0,0 +1,35 @@
+{
+  'targets': [
+    {
+      'target_name': 'trapezoid_profile',
+      'type': 'static_library',
+      'sources': [
+        'trapezoid_profile.cc',
+      ],
+      'dependencies': [
+        '<(EXTERNALS):eigen',
+        '<(AOS)/common/common.gyp:time',
+      ],
+      'export_dependent_settings': [
+        '<(EXTERNALS):eigen',
+        '<(AOS)/common/common.gyp:time',
+      ],
+    },
+    {
+      'target_name': 'trapezoid_profile_test',
+      'type': 'executable',
+      'sources': [
+        'trapezoid_profile_test.cc',
+      ],
+      'dependencies': [
+        ':trapezoid_profile',
+        '<(EXTERNALS):gtest',
+        # TODO(brians): remove this when time no longer requires it
+        '<(AOS)/build/aos.gyp:logging',
+        # TODO(brians): remove this when logging no longer requires it
+        #'<(AOS)/common/common.gyp:die',
+        '<(AOS)/build/aos.gyp:libaos',
+      ],
+    },
+  ],
+}