Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed commands BLE_API nRF51822
Controller.h
- Committer:
- dkester
- Date:
- 2015-06-11
- Revision:
- 8:c6345e8d607c
- Parent:
- 6:75263c93daf7
File content as of revision 8:c6345e8d607c:
#include "mbed.h"
#include <vector>
#include "commands.h"
#include "Sensors.h"
#include "Storage.h"
#include "BLEDevice.h"
#include "GonioService.h"
class Controller {
std::vector<Command*> modeList;
int currentModeSelector;
bool buttonIntFlag;
bool imuIntFlag;
bool tickerIntFlag;
bool tickerIntDataFlag;
bool peak;
int16_t angle;
Sensors* sensors;
Storage* storage;
GonioService* gonioService;
public:
Controller();
void disconnect();
void setCommand(int);
void buttonInt();
void imuInt();
void tickerInt();
void tickerDataInt();
Command* currentMode();
void run();
};