Code for RFID Robot
Dependencies: DebounceIn HTTPClient ID12RFID SDFileSystem TextLCD WiflyInterface iniparser mbed
Diff: SD.h
- Revision:
- 0:9fd64882c5aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SD.h Tue Dec 10 02:17:48 2013 +0000 @@ -0,0 +1,35 @@ +#ifndef _SD_H +#define _SD_H + +#include "mbed.h" +#include "SDFileSystem.h" +#include "iniparser.h" +#include "dictionary.h" +#include <vector> +#include "LCDText.h" + +typedef enum { + Forward, + Reverse, + Left, + Right, + PlaySound, + None +} CommandType; + +class robotCommand { +public: + robotCommand(CommandType type, double mag) : commandType(type), magnitude(mag) {} + CommandType commandType; + double magnitude; +}; + +extern SDFileSystem sd; + +void setupSDCard(); +vector<robotCommand>* translateTags(vector<int>& tagValues); +vector<robotCommand>* getProgrammedPath(int pathNumber); +void writeTagCommand(int tagID, CommandType value); +void writeTagCommand(int tagID, double magValue); + +#endif \ No newline at end of file