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/crio/build.sh b/frc971/crio/build.sh
new file mode 100755
index 0000000..ec04978
--- /dev/null
+++ b/frc971/crio/build.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+../../aos/build/build.sh crio crio.gyp no $1
diff --git a/frc971/crio/crio.gyp b/frc971/crio/crio.gyp
new file mode 100644
index 0000000..236ec14
--- /dev/null
+++ b/frc971/crio/crio.gyp
@@ -0,0 +1,54 @@
+{
+  'targets': [
+    {
+# The WPILib code that we've modified.
+      'target_name': 'WPILib_changes',
+      'type': 'static_library',
+      'sources': [
+        '<(AOS)/externals/WPILib/WPILib/DriverStationLCD.cpp',
+        '<(AOS)/externals/WPILib/WPILib/Synchronized.cpp',
+        '<(AOS)/externals/WPILib/WPILib/DriverStation.cpp',
+        '<(AOS)/externals/WPILib/WPILib/Notifier.cpp',
+        '<(AOS)/externals/WPILib/WPILib/MotorSafetyHelper.cpp',
+        '<(AOS)/externals/WPILib/WPILib/Resource.cpp',
+        '<(AOS)/externals/WPILib/WPILib/SolenoidBase.cpp',
+      ],
+      'dependencies': [
+        '<(EXTERNALS):WPILib',
+      ],
+      'cflags!': ['-Werror'],
+    },
+    {
+      'target_name': 'user_program',
+      'type': 'static_library',
+      'sources': [
+        'main.cc',
+      ],
+      'dependencies': [
+        '../input/input.gyp:SensorReader',
+        '../input/input.gyp:SensorWriter',
+        '../output/output.gyp:MotorWriter',
+        '../output/output.gyp:SensorSender',
+        'WPILib_changes',
+        '<(EXTERNALS):WPILib',
+        '<(AOS)/common/messages/messages.gyp:aos_queues',
+      ],
+    },
+    {
+      'target_name': 'FRC_UserProgram',
+      'type': 'shared_library',
+      'dependencies': [
+        'user_program'
+      ],
+    },
+    {
+      'target_name': 'FRC_UserProgram_WithTests',
+      'type': 'shared_library',
+      'dependencies': [
+        'user_program',
+        # For testing.
+        '<(AOS)/build/aos_all.gyp:Crio',
+      ],
+    },
+  ],
+}
diff --git a/frc971/crio/main.cc b/frc971/crio/main.cc
new file mode 100644
index 0000000..e814b97
--- /dev/null
+++ b/frc971/crio/main.cc
@@ -0,0 +1,19 @@
+#include "aos/crio/controls/ControlsManager.h"
+
+#include "aos/crio/motor_server/CRIOControlLoopRunner.h"
+
+namespace frc971 {
+
+class MyRobot : public ::aos::crio::ControlsManager {
+ public:
+  virtual void RegisterControlLoops() {
+    //::aos::crio::CRIOControlLoopRunner::AddControlLoop(&shooter_);
+  }
+
+ private:
+  //::frc971::control_loops::ShooterMotor shooter_;
+};
+
+}  // namespace frc971
+
+START_ROBOT_CLASS(::frc971::MyRobot);