Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef B21_CONFIG_H
00027 #define B21_CONFIG_H
00028
00029
00030
00031
00032 #define ODO_DISTANCE_CONVERSION 103000
00033
00034 #define ODO_ANGLE_CONVERSION 35000
00035
00036
00037
00038
00039 #define RANGE_CONVERSION 1476
00040 #define SONAR_ECHO_DELAY 30000
00041 #define SONAR_PING_DELAY 0
00042 #define SONAR_SET_DELAY 0
00043 #define SONAR_MAX_RANGE 3000
00044
00045 #define BODY_INDEX 0
00046 #define BASE_INDEX 1
00047 const int SONARS_PER_BANK[] = {4, 4, 4, 4, 4, 4,
00048 3, 3, 3, 3, 3, 3, 3, 3
00049 };
00050 const int SONAR_RING_BANK_BOUND[] = {0, 6, 14};
00051 #define SONAR_MAX_PER_BANK 16
00052
00053 const int SONARS_PER_RING[] = {24, 24};
00054 const float SONAR_RING_START_ANGLE[] = {180,90};
00055 const float SONAR_RING_ANGLE_INC[] = {-15, -15};
00056 const float SONAR_RING_DIAMETER[] = {.25, .26};
00057 const float SONAR_RING_HEIGHT[] = {0.055, -0.06};
00058
00059
00060
00061 #define HEADING_HOME_ADDRESS 0x31
00062 #define HOME_BEARING -32500
00063
00064 #define BUMPER_ADDRESS 0x40
00065 #define BUMPER_COUNT 14
00066 #define BUMPER_ADDRESS_STYLE 0
00067 #define BUMPER_BIT_STYLE 1
00068 #define BUMPER_STYLE 0
00069 const int BUMPERS_PER[] = {6,8};
00070 const double BUMPER_ANGLE_OFFSET[] = {-1,1,-1,1};
00071 const double BUMPER_HEIGHT_OFFSET[][4] = {{.5,.5,.05,.05},
00072 {.25,.25,.05,.05}
00073 };
00074
00075
00076
00077 #define IR_POSES_COUNT 24
00078 #define IR_BASE_BANK 0
00079 #define IR_BANK_COUNT 6
00080 #define IR_PER_BANK 4
00081
00082
00083
00084 #define USE_JOYSTICK 0
00085 #define JOY_POS_RATIO 6
00086 #define JOY_ANG_RATIO -0.01
00087 #define POWER_OFFSET 1.2
00088 #define PLUGGED_THRESHOLD 25.0
00089
00090 #endif
00091
00092
00093
00094
00095
00096
00097
00098
00099