copied everything over from 2012 and removed all of the actual robot code except the drivetrain stuff


git-svn-id: https://robotics.mvla.net/svn/frc971/2013/trunk/src@4078 f308d9b7-e957-4cde-b6ac-9a88185e7312
diff --git a/frc971/control_loops/matlab/writeMat.m b/frc971/control_loops/matlab/writeMat.m
new file mode 100644
index 0000000..b1541f5
--- /dev/null
+++ b/frc971/control_loops/matlab/writeMat.m
@@ -0,0 +1,16 @@
+function writeMat(fd, matrix, name)
+    %fprintf(fd, '%s = init_matrix(%d, %d);\n', name, size(matrix, 1), size(matrix, 2));
+    fprintf(fd, '%s << ', name);
+    first_loop = 1;
+    for i=1:size(matrix, 1)
+        for j=1:size(matrix, 2)
+            if first_loop
+                first_loop = 0;
+            else
+                fprintf(fd, ', ');
+            end
+            fprintf(fd, '%.10f', matrix(i, j));
+        end
+    end
+    fprintf(fd, '; \\\n');
+end
\ No newline at end of file