This is the latest WPILib src, VisionSample2013, cRIO image, ... pulled down from firstforge.wpi.edu.
There might be risks in using the top of tree rather than an official release, but the commit messages do mention fixes for some deadlocks and race conditions.
git-svn-id: https://robotics.mvla.net/svn/frc971/2013/trunk/src@4066 f308d9b7-e957-4cde-b6ac-9a88185e7312
diff --git a/azaleasource/WPILibCProgramming/trunk/WPILib/Commands/Subsystem.h b/azaleasource/WPILibCProgramming/trunk/WPILib/Commands/Subsystem.h
new file mode 100644
index 0000000..b04616d
--- /dev/null
+++ b/azaleasource/WPILibCProgramming/trunk/WPILib/Commands/Subsystem.h
@@ -0,0 +1,47 @@
+/*----------------------------------------------------------------------------*/
+/* Copyright (c) FIRST 2011. All Rights Reserved. */
+/* Open Source Software - may be modified and shared by FRC teams. The code */
+/* must be accompanied by the FIRST BSD license file in $(WIND_BASE)/WPILib. */
+/*----------------------------------------------------------------------------*/
+
+#ifndef __SUBSYSTEM_H__
+#define __SUBSYSTEM_H__
+
+#include "ErrorBase.h"
+#include "SmartDashboard/NamedSendable.h"
+#include <string>
+
+
+class Command;
+
+class Subsystem : public ErrorBase, public NamedSendable
+{
+ friend class Scheduler;
+public:
+ Subsystem(const char *name);
+ virtual ~Subsystem() {}
+
+ void SetDefaultCommand(Command *command);
+ Command *GetDefaultCommand();
+ void SetCurrentCommand(Command *command);
+ Command *GetCurrentCommand();
+ virtual void InitDefaultCommand();
+
+private:
+ void ConfirmCommand();
+
+ Command *m_currentCommand;
+ Command *m_defaultCommand;
+ std::string m_name;
+ bool m_initializedDefaultCommand;
+
+public:
+ virtual std::string GetName();
+ virtual void InitTable(ITable* table);
+ virtual ITable* GetTable();
+ virtual std::string GetSmartDashboardType();
+protected:
+ ITable* m_table;
+};
+
+#endif