Device to measure angle and get IMU measurements.
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(); };