Code for RFID Robot
Dependencies: DebounceIn HTTPClient ID12RFID SDFileSystem TextLCD WiflyInterface iniparser mbed
SD.h
- Committer:
- 4180skrw
- Date:
- 2013-12-10
- Revision:
- 0:9fd64882c5aa
File content as of revision 0:9fd64882c5aa:
#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