Code for RFID Robot

Dependencies:   DebounceIn HTTPClient ID12RFID SDFileSystem TextLCD WiflyInterface iniparser mbed

Committer:
4180skrw
Date:
Tue Dec 10 02:17:48 2013 +0000
Revision:
0:9fd64882c5aa
initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
4180skrw 0:9fd64882c5aa 1 #ifndef _SD_H
4180skrw 0:9fd64882c5aa 2 #define _SD_H
4180skrw 0:9fd64882c5aa 3
4180skrw 0:9fd64882c5aa 4 #include "mbed.h"
4180skrw 0:9fd64882c5aa 5 #include "SDFileSystem.h"
4180skrw 0:9fd64882c5aa 6 #include "iniparser.h"
4180skrw 0:9fd64882c5aa 7 #include "dictionary.h"
4180skrw 0:9fd64882c5aa 8 #include <vector>
4180skrw 0:9fd64882c5aa 9 #include "LCDText.h"
4180skrw 0:9fd64882c5aa 10
4180skrw 0:9fd64882c5aa 11 typedef enum {
4180skrw 0:9fd64882c5aa 12 Forward,
4180skrw 0:9fd64882c5aa 13 Reverse,
4180skrw 0:9fd64882c5aa 14 Left,
4180skrw 0:9fd64882c5aa 15 Right,
4180skrw 0:9fd64882c5aa 16 PlaySound,
4180skrw 0:9fd64882c5aa 17 None
4180skrw 0:9fd64882c5aa 18 } CommandType;
4180skrw 0:9fd64882c5aa 19
4180skrw 0:9fd64882c5aa 20 class robotCommand {
4180skrw 0:9fd64882c5aa 21 public:
4180skrw 0:9fd64882c5aa 22 robotCommand(CommandType type, double mag) : commandType(type), magnitude(mag) {}
4180skrw 0:9fd64882c5aa 23 CommandType commandType;
4180skrw 0:9fd64882c5aa 24 double magnitude;
4180skrw 0:9fd64882c5aa 25 };
4180skrw 0:9fd64882c5aa 26
4180skrw 0:9fd64882c5aa 27 extern SDFileSystem sd;
4180skrw 0:9fd64882c5aa 28
4180skrw 0:9fd64882c5aa 29 void setupSDCard();
4180skrw 0:9fd64882c5aa 30 vector<robotCommand>* translateTags(vector<int>& tagValues);
4180skrw 0:9fd64882c5aa 31 vector<robotCommand>* getProgrammedPath(int pathNumber);
4180skrw 0:9fd64882c5aa 32 void writeTagCommand(int tagID, CommandType value);
4180skrw 0:9fd64882c5aa 33 void writeTagCommand(int tagID, double magValue);
4180skrw 0:9fd64882c5aa 34
4180skrw 0:9fd64882c5aa 35 #endif