Go to the documentation of this file.00001 #ifndef __MCDC3006S_DATA_H__
00002 #define __MCDC3006S_DATA_H__
00003
00027
00028
00029 #define BAUDRATE 19200
00030
00032
00033
00034 #define PULSES_PER_REV 2048.
00035
00036
00037 #define NECK_VER_REDUCTION_FACTOR 178.
00038 #define NECK_HOR_REDUCTION_FACTOR 111.
00039
00040 #define ARMS_REDUCTION_FACTOR 166.
00041
00042
00043 #define TOTAL_NECK_VER_REDUCTION (PULSES_PER_REV * NECK_VER_REDUCTION_FACTOR)
00044 #define TOTAL_NECK_HOR_REDUCTION (PULSES_PER_REV * NECK_HOR_REDUCTION_FACTOR)
00045
00046 #define TOTAL_ARMS_REDUCTION (PULSES_PER_REV * ARMS_REDUCTION_FACTOR)
00047
00049
00050
00051 #define HOR_NECK_SEMAPHORE_FILE "tmp/horNeckSemaphore"
00052 #define VER_NECK_SEMAPHORE_FILE "tmp/verNeckSemaphore"
00053
00054 #define LEFT_ARM_SEMAPHORE_FILE "tmp/leftArmSemaphore"
00055 #define RIGHT_ARM_SEMAPHORE_FILE "tmp/rightArmSemaphore"
00056
00058
00059
00060 enum neck_id {
00061 NECK_HOR = 0, NECK_VER
00062 };
00063 enum arm_id {
00064 ARM_LEFT = 0, ARM_RIGHT
00065 };
00066
00068
00069 #define NECK "neck"
00070 #define ARM "arm"
00071
00073
00074 #define TEST_DEVICE 0
00075
00077
00078 typedef struct odometry {
00079
00080 double pos;
00081
00082 double vel;
00083
00084 int cur;
00085 } odo_t;
00086
00087 #endif