Code for RFID Robot
Dependencies: DebounceIn HTTPClient ID12RFID SDFileSystem TextLCD WiflyInterface iniparser mbed
robot.h
00001 #ifndef _ROBOT_H 00002 #define _ROBOT_H 00003 00004 #include "mbed.h" 00005 #include <vector> 00006 #include "LCDText.h" 00007 00008 extern Serial device; 00009 00010 // Definitions of iRobot Roomba SCI Command Numbers 00011 // See the Roomba SCI manual for a complete list 00012 00013 00014 // Create Command // Arguments 00015 const char Start = 128; 00016 const char Control = 130; 00017 const char FullMode = 132; 00018 const char Drive = 137; // 4: [Vel. Hi] [Vel Low] [Rad. Hi] [Rad. Low] 00019 const char Sensors = 142; // 1: Sensor Packet ID 00020 const char CoverandDock = 143; // 0: Return to Charger 00021 const char Clean = 135; // 0: Start Cleaning 00022 const char PlaySong = 141; 00023 const char Song = 140; 00024 const char NewScript = 152; 00025 const char DoScript = 153; 00026 const char WaitTime = 155; 00027 const char WaitAngle = 157; 00028 /* iRobot Roomba Sensor IDs */ 00029 const char BumpsandDrops = 1; 00030 00031 const int speed = 250; 00032 const int radius = 0x8000; 00033 void start(); 00034 void forward(); 00035 void reverse(); 00036 void left(); 00037 void right(); 00038 void stop(); 00039 void playsong(int mag); 00040 void charger(); 00041 void initializeRobot(); 00042 00043 #endif
Generated on Tue Jul 12 2022 18:24:35 by 1.7.2