Device to measure angle and get IMU measurements.

Dependencies:   mbed commands BLE_API nRF51822

Controller.cpp

Committer:
dkester
Date:
2015-06-01
Revision:
3:a3e1a06c486d
Parent:
2:871b5efb2043
Child:
4:2a5a08b14539

File content as of revision 3:a3e1a06c486d:

#include "Controller.h"

Controller::Controller(){
    this->modeList.push_back(new TrainingCommand());
    this->modeList.push_back(new CompetitionCommand());
    this->modeList.push_back(new ReadCommand());
    this->modeList.push_back(new IdleCommand());
    this->modeList.push_back(new SleepCommand());
    }
    
void Controller::action(int i){
    this->modeList[i]->execute();
    }

Command* Controller::getController(int i){
    return this->modeList[i];
    }