b21_config.h
Go to the documentation of this file.
00001 /*  B21 constants
00002  *  David Lu!! - 2/2010
00003  *  Modified from Player Driver
00004  *
00005  *  Player - One Hell of a Robot Server
00006  *  Copyright (C) 2000
00007  *     Brian Gerkey, Kasper Stoy, Richard Vaughan, & Andrew Howard
00008  *
00009  *
00010  *  This program is free software; you can redistribute it and/or modify
00011  *  it under the terms of the GNU General Public License as published by
00012  *  the Free Software Foundation; either version 2 of the License, or
00013  *  (at your option) any later version.
00014  *
00015  *  This program is distributed in the hope that it will be useful,
00016  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018  *  GNU General Public License for more details.
00019  *
00020  *  You should have received a copy of the GNU General Public License
00021  *  along with this program; if not, write to the Free Software
00022  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00023  *
00024  */
00025 
00026 #ifndef B21_CONFIG_H
00027 #define B21_CONFIG_H
00028 
00029 // Odometery Constants
00030 // ===================
00031 // Arbitrary units per meter
00032 #define ODO_DISTANCE_CONVERSION 103000
00033 // Arbitrary units per radian
00034 #define ODO_ANGLE_CONVERSION 35000
00035 
00036 // Sonar Constants
00037 // ===============
00038 // Arbitrary units per meter (for sonar)
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 // Digital IO constants
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 // IR Constants
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 // Misc Constants
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 


rflex
Author(s): David V. Lu!!, Mikhail Medvedev
autogenerated on Fri Aug 28 2015 12:58:58