Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
CreateCommands.hGo to the documentation of this file.00001 //-*-c++-*- 00002 #ifndef INCLUDED_CreateCommands_h_ 00003 #define INCLUDED_CreateCommands_h_ 00004 00005 // Create Commands 00006 // Commands unique to Create 2 00007 #ifdef TGT_IS_CREATE2 00008 const unsigned char CREATE_RESET = 7; 00009 const unsigned char CREATE_POWER = 133; 00010 const unsigned char CREATE_CLEAN = 135; 00011 const unsigned char CREATE_MAX = 136; 00012 const unsigned char CREATE_MOTOR = 138; 00013 const unsigned char CREATE_SEEK_DOCK = 143; 00014 const unsigned char CREATE_PWM_LSD = 144; 00015 const unsigned char CREATE_PWM_MOTOR = 146; 00016 const unsigned char CREATE_SCHEDULE_LED = 162; 00017 const unsigned char CREATE_RAW_LED = 163; 00018 const unsigned char CREATE_ASCII_LED = 164; 00019 const unsigned char CREATE_BUTTONS = 165; 00020 const unsigned char CREATE_SCHEDULE = 167; 00021 const unsigned char CREATE_DAY_TIME = 168; 00022 const unsigned char CREATE_STOP = 173; 00023 #else 00024 // Commands unique to Create 00025 const unsigned char CREATE_COVER = 135; 00026 const unsigned char CREATE_DEMO = 136; 00027 const unsigned char CREATE_LSD = 138; 00028 const unsigned char CREATE_COVER_AND_DOCK = 143; 00029 const unsigned char CREATE_PWM_LSD = 144; 00030 const unsigned char CREATE_DIGITAL_OUT = 147; 00031 const unsigned char CREATE_SCRIPT = 152; 00032 const unsigned char CREATE_SEND_IR = 151; 00033 const unsigned char CREATE_PLAY_SCRIPT = 153; 00034 const unsigned char CREATE_SHOW_SCRIPT = 154; 00035 const unsigned char CREATE_WAIT_TIME = 155; 00036 const unsigned char CREATE_WAIT_DISTANCE = 156; 00037 const unsigned char CREATE_WAIT_ANGLE = 157; 00038 const unsigned char CREATE_WAIT_EVENT = 158; 00039 #endif 00040 // Common Commands 00041 const unsigned char CREATE_START = 128; 00042 const unsigned char CREATE_BAUD = 129; 00043 const unsigned char CREATE_SAFE_OLD = 130; 00044 const unsigned char CREATE_SAFE = 131; 00045 const unsigned char CREATE_FULL = 132; 00046 const unsigned char CREATE_DRIVE = 137; 00047 const unsigned char CREATE_LEDS = 139; 00048 const unsigned char CREATE_SONG = 140; 00049 const unsigned char CREATE_PLAY_SONG = 141; 00050 const unsigned char CREATE_SENSORS = 142; 00051 const unsigned char CREATE_DRIVE_DIRECT = 145; 00052 const unsigned char CREATE_STREAM = 148; 00053 const unsigned char CREATE_QUERY_LIST = 149; 00054 const unsigned char CREATE_PAUSE_RESUME_STREAM = 150; 00055 00056 // Create sensor packet code 00057 // Sensor packets unique to create 2 00058 const unsigned char CREATE_SENSOR_GROUP_100 = 100; 00059 const unsigned char CREATE_SENSOR_GROUP_101 = 101; 00060 const unsigned char CREATE_SENSOR_GROUP_106 = 106; 00061 const unsigned char CREATE_SENSOR_GROUP_107 = 107; 00062 00063 const unsigned char CREATE_SENSOR_DIRT = 15; 00064 const unsigned char CREATE_SENSOR_IR_LEFT = 52; 00065 const unsigned char CREATE_SENSOR_IR_RIGHT = 53; 00066 const unsigned char CREATE_SENSOR_ENCODER_LEFT = 43; 00067 const unsigned char CREATE_SENSOR_ENCODER_RIGHT = 44; 00068 const unsigned char CREATE_SENSOR_LIGHT_BUMPER = 45; 00069 const unsigned char CREATE_SENSOR_LIGHT_L_BUMP = 46; 00070 const unsigned char CREATE_SENSOR_LIGHT_FL_BUMP = 47; 00071 const unsigned char CREATE_SENSOR_LIGHT_CL_BUMP = 48; 00072 const unsigned char CREATE_SENSOR_LIGHT_CR_BUMP = 49; 00073 const unsigned char CREATE_SENSOR_LIGHT_FR_BUMP = 50; 00074 const unsigned char CREATE_SENSOR_LIGHT_R_BUMP = 51; 00075 const unsigned char CREATE_SENSOR_CURRENT_L_MOTOR = 54; 00076 const unsigned char CREATE_SENSOR_CURRENT_R_MOTOR = 55; 00077 const unsigned char CREATE_SENSOR_CURRENT_MAIN_BRUSH = 56; 00078 const unsigned char CREATE_SENSOR_CURRENT_SIDE_BRUSH = 57; 00079 const unsigned char CREATE_SENSOR_STASIS = 58; 00080 const unsigned char CREATE_SENSOR_UNUSED_3 = 32; 00081 const unsigned char CREATE_SENSOR_UNUSED_4 = 33; 00082 // Sensor packets unique to create 1 00083 const unsigned char CREATE_SENSOR_UNUSED_1 = 15; 00084 const unsigned char CREATE_SENSOR_DIGITAL_IN = 32; 00085 const unsigned char CREATE_SENSOR_ANALOG = 33; 00086 00087 // Common sensor packets 00088 const unsigned char CREATE_SENSOR_GROUP_0 = 0; 00089 const unsigned char CREATE_SENSOR_GROUP_1 = 1; 00090 const unsigned char CREATE_SENSOR_GROUP_2 = 2; 00091 const unsigned char CREATE_SENSOR_GROUP_3 = 3; 00092 const unsigned char CREATE_SENSOR_GROUP_4 = 4; 00093 const unsigned char CREATE_SENSOR_GROUP_5 = 5; 00094 const unsigned char CREATE_SENSOR_GROUP_6 = 6; 00095 00096 const unsigned char CREATE_SENSOR_DROP = 7; 00097 const unsigned char CREATE_SENSOR_WALL = 8; 00098 const unsigned char CREATE_SENSOR_CLIFF_LEFT = 9; 00099 const unsigned char CREATE_SENSOR_CLIFF_FRONT_LEFT = 10; 00100 const unsigned char CREATE_SENSOR_CLIFF_FRONT_RIGHT = 11; 00101 const unsigned char CREATE_SENSOR_CLIFF_RIGHT = 12; 00102 const unsigned char CREATE_SENSOR_VIRTUAL_WALL = 13; 00103 const unsigned char CREATE_SENSOR_OVERCURRENT = 14; 00104 const unsigned char CREATE_SENSOR_UNUSED_2 = 16; 00105 const unsigned char CREATE_SENSOR_IR = 17; 00106 const unsigned char CREATE_SENSOR_BUTTONS = 18; 00107 const unsigned char CREATE_SENSOR_DISTANCE = 19; 00108 const unsigned char CREATE_SENSOR_ANGLE = 20; 00109 const unsigned char CREATE_SENSOR_CHANGING_STATE = 21; 00110 const unsigned char CREATE_SENSOR_VOLTAGE = 22; 00111 const unsigned char CREATE_SENSOR_CURRENT = 23; 00112 const unsigned char CREATE_SENSOR_BATTERY_TEMP = 24; 00113 const unsigned char CREATE_SENSOR_BATTERY_CHARGE = 25; 00114 const unsigned char CREATE_SENSOR_BATTERY_CAPACITY = 26; 00115 const unsigned char CREATE_SENSOR_WALL_SIGNAL = 27; 00116 const unsigned char CREATE_SENSOR_CLIFF_L_SIGNAL = 28; 00117 const unsigned char CREATE_SENSOR_CLIFF_FL_SIGNAL = 29; 00118 const unsigned char CREATE_SENSOR_CLIFF_FR_SIGNAL = 30; 00119 const unsigned char CREATE_SENSOR_CLIFF_R_SIGNAL = 31; 00120 const unsigned char CREATE_SENSOR_CAN_CHARGE = 34; 00121 const unsigned char CREATE_SENSOR_OI_MODE = 35; 00122 const unsigned char CREATE_SENSOR_SONG_NUMBER = 36; 00123 const unsigned char CREATE_SENSOR_SONG_PLAYING = 37; 00124 const unsigned char CREATE_SENSOR_STREAM_SIZE = 38; 00125 const unsigned char CREATE_SENSOR_REQ_VELOCITY = 39; 00126 const unsigned char CREATE_SENSOR_REQ_RADIUS = 40; 00127 const unsigned char CREATE_SENSOR_REQ_RIGHT_VELOCITY = 41; 00128 const unsigned char CREATE_SENSOR_REQ_LEFT_VELOCITY = 42; 00129 #endif |
Tekkotsu Hardware Abstraction Layer 5.1CVS |
Generated Mon May 9 05:01:38 2016 by Doxygen 1.6.3 |