2015_robocon_bteam / Mbed 2 deprecated 2015robot_main_zenkoku

Dependencies:   PID QEI mbed

Revision:
11:565fca1ead5b
Parent:
9:f9a0c7ca640f
Child:
17:726b6f53a457
diff -r 8a2255451513 -r 565fca1ead5b PinDefinedSetting.h
--- a/PinDefinedSetting.h	Mon Nov 02 08:48:04 2015 +0000
+++ b/PinDefinedSetting.h	Mon Nov 02 09:04:20 2015 +0000
@@ -14,32 +14,32 @@
 
 /****The pin is to conect to encoder which sense migration length****/
 #ifdef BLUE
-#define ENCOD_MOVE_R_A      p26
-#define ENCOD_MOVE_R_B      p25
+#define ENCOD_MOVE_R_A      p5
+#define ENCOD_MOVE_R_B      p6
 #else
-#define ENCOD_MOVE_R_A      p30
-#define ENCOD_MOVE_R_B      p29
+#define ENCOD_MOVE_R_A      p8
+#define ENCOD_MOVE_R_B      p7
 #endif
 QEI Move_r_sense(ENCOD_MOVE_R_A, ENCOD_MOVE_R_B, NC, 400, QEI::X4_ENCODING);
 
 /****The pin is to conect to encoder which sense migration length****/
 #ifdef BLUE
-#define ENCOD_MOVE_L_A      p29
-#define ENCOD_MOVE_L_B      p30
+#define ENCOD_MOVE_L_A      p7
+#define ENCOD_MOVE_L_B      p8
 #else
-#define ENCOD_MOVE_L_A      p25
-#define ENCOD_MOVE_L_B      p26
+#define ENCOD_MOVE_L_A      p6
+#define ENCOD_MOVE_L_B      p5
 #endif
 QEI Move_l_sense(ENCOD_MOVE_L_A, ENCOD_MOVE_L_B, NC, 400, QEI::X4_ENCODING);
 
 /****The pin is to conect to motor which to move.****/
 #ifdef BLUE
-#define MOTOR_MOVE_R_CW     p18
-#define MOTOR_MOVE_R_CCW    p21
+#define MOTOR_MOVE_R_CW     p17
+#define MOTOR_MOVE_R_CCW    p18
 #define MOTOR_MOVE_R_PWM    p22
 #else
-#define MOTOR_MOVE_R_CW     p19
-#define MOTOR_MOVE_R_CCW    p20
+#define MOTOR_MOVE_R_CW     p20
+#define MOTOR_MOVE_R_CCW    p19
 #define MOTOR_MOVE_R_PWM    p23
 #endif
 DigitalOut Move_r_Motor_CW(MOTOR_MOVE_R_CW);
@@ -48,12 +48,12 @@
 
 /****The pin is to conect to motor which to move.****/
 #ifdef BLUE
-#define MOTOR_MOVE_L_CW     p20
-#define MOTOR_MOVE_L_CCW    p19
+#define MOTOR_MOVE_L_CW     p19
+#define MOTOR_MOVE_L_CCW    p20
 #define MOTOR_MOVE_L_PWM    p23
 #else
-#define MOTOR_MOVE_L_CW     p21
-#define MOTOR_MOVE_L_CCW    p18
+#define MOTOR_MOVE_L_CW     p18
+#define MOTOR_MOVE_L_CCW    p17
 #define MOTOR_MOVE_L_PWM    p22
 #endif
 DigitalOut Move_l_Motor_CW(MOTOR_MOVE_L_CW);
@@ -61,11 +61,11 @@
 PwmOut Move_l_Motor_PWM(MOTOR_MOVE_L_PWM);
 
 /***The pin is to conect to swing motor and interrupter.***/
-#define MOTOR_SWING_PWM     p24
+#define MOTOR_SWING_PWM     p21
 PwmOut Motor_swing(MOTOR_SWING_PWM);
-#define ENCOD_SWING_A       p12
-#define ENCOD_SWING_B       p11
-#define ENCOD_SWING_Z       p15
+#define ENCOD_SWING_A       p11
+#define ENCOD_SWING_B       p10
+#define ENCOD_SWING_Z       p9
 QEI SwingSens(ENCOD_SWING_A, ENCOD_SWING_B, ENCOD_SWING_Z, 360, QEI::X4_ENCODING);
 #define INTERRUPTER         p16
 InterruptIn interrupter(INTERRUPTER);
@@ -75,9 +75,9 @@
 DigitalOut Indicator2(LED2);
 DigitalOut Indicator3(LED3);
 DigitalOut Indicator4(LED4);
-DigitalOut IndicatorAuto(p17);
-DigitalOut IndicatorBLUE(p6);
-DigitalOut IndicatorRED(p5);
+DigitalOut IndicatorAuto(p16);
+DigitalOut IndicatorBLUE(p25);
+DigitalOut IndicatorRED(p24);
 /////////////////////////////////////////////////////////////////////////
 
 #endif /*PinDefine.h*/
\ No newline at end of file