にいむら にいむら
/
mainboardnrp2018
unkounko
Diff: Output/Motor/Motor.h
- Revision:
- 1:e73cf2469f83
- Parent:
- 0:562021ed1ba9
- Child:
- 3:a9ab1a251456
--- a/Output/Motor/Motor.h Sat Jan 13 13:33:09 2018 +0000 +++ b/Output/Motor/Motor.h Tue Jan 16 08:47:01 2018 +0000 @@ -10,7 +10,7 @@ #define FOR 2 #define BRAKE 3 - #define MOUNTING_MOTOR_NUM (5 + 1) //MOTOR0の関係で+1 + #define MOUNTING_MOTOR_NUM 5 #define MOTOR0_D1 directions[0] #define MOTOR0_D2 directions[1] @@ -22,28 +22,23 @@ #define MOTOR3_D2 directions[7] #define MOTOR4_D1 directions[8] #define MOTOR4_D2 directions[9] - #define MOTOR5_D1 directions[10] - #define MOTOR6_D2 directions[11] - #define MOTOR0_D1_PIN NC - #define MOTOR0_D2_PIN NC - #define MOTOR1_D1_PIN D3 - #define MOTOR1_D2_PIN D2 - #define MOTOR2_D1_PIN D6 - #define MOTOR2_D2_PIN D5 - #define MOTOR3_D1_PIN D9 - #define MOTOR3_D2_PIN D8 - #define MOTOR4_D1_PIN D12 - #define MOTOR4_D2_PIN D11 - #define MOTOR5_D1_PIN A0 - #define MOTOR5_D2_PIN A1 + #define MOTOR0_D1_PIN D3 + #define MOTOR0_D2_PIN D2 + #define MOTOR1_D1_PIN D6 + #define MOTOR1_D2_PIN D5 + #define MOTOR2_D1_PIN D9 + #define MOTOR2_D2_PIN D8 + #define MOTOR3_D1_PIN D12 + #define MOTOR3_D2_PIN D11 + #define MOTOR4_D1_PIN A0 + #define MOTOR4_D2_PIN A1 - #define MOTOR0_PWM_PIN NC - #define MOTOR1_PWM_PIN D4 - #define MOTOR2_PWM_PIN D7 - #define MOTOR3_PWM_PIN D10 - #define MOTOR4_PWM_PIN A2 - #define MOTOR5_PWM_PIN A3 + #define MOTOR0_PWM_PIN D4 + #define MOTOR1_PWM_PIN D7 + #define MOTOR2_PWM_PIN D10 + #define MOTOR3_PWM_PIN A2 + #define MOTOR4_PWM_PIN A3 typedef struct { @@ -71,4 +66,3 @@ } #endif -