Device to measure angle and get IMU measurements.

Dependencies:   mbed commands BLE_API nRF51822

Revision:
2:871b5efb2043
Child:
3:a3e1a06c486d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Controller.cpp	Sat May 30 12:26:02 2015 +0000
@@ -0,0 +1,15 @@
+#include "Controller.h"
+
+Controller::Controller(){
+    this->modeList.push_back(new TrainingCommand());
+    this->modeList.push_back(new CompetitionCommand());
+    this->modeList.push_back(new StatusCommand());
+    }
+    
+void Controller::action(int i){
+    this->modeList[i]->execute();
+    }
+
+Command* Controller::getController(int i){
+    return this->modeList[i];
+    }
\ No newline at end of file