Code for RFID Robot
Dependencies: DebounceIn HTTPClient ID12RFID SDFileSystem TextLCD WiflyInterface iniparser mbed
SD.h
00001 #ifndef _SD_H 00002 #define _SD_H 00003 00004 #include "mbed.h" 00005 #include "SDFileSystem.h" 00006 #include "iniparser.h" 00007 #include "dictionary.h" 00008 #include <vector> 00009 #include "LCDText.h" 00010 00011 typedef enum { 00012 Forward, 00013 Reverse, 00014 Left, 00015 Right, 00016 PlaySound, 00017 None 00018 } CommandType; 00019 00020 class robotCommand { 00021 public: 00022 robotCommand(CommandType type, double mag) : commandType(type), magnitude(mag) {} 00023 CommandType commandType; 00024 double magnitude; 00025 }; 00026 00027 extern SDFileSystem sd; 00028 00029 void setupSDCard(); 00030 vector<robotCommand>* translateTags(vector<int>& tagValues); 00031 vector<robotCommand>* getProgrammedPath(int pathNumber); 00032 void writeTagCommand(int tagID, CommandType value); 00033 void writeTagCommand(int tagID, double magValue); 00034 00035 #endif
Generated on Tue Jul 12 2022 18:24:35 by 1.7.2