yuto kawamura
/
George_Slave_BOTHMOVE
right and left move at the same time
Diff: pin.h
- Revision:
- 1:34371ffd3dc0
- Parent:
- 0:411ab20ce87d
- Child:
- 2:db2bc2ae4d20
diff -r 411ab20ce87d -r 34371ffd3dc0 pin.h --- a/pin.h Fri Apr 26 11:34:44 2019 +0000 +++ b/pin.h Sat Apr 27 05:34:43 2019 +0000 @@ -4,18 +4,18 @@ double resolution=500; -PwmOut motor_ro_f(p21); //モータ正転 -PwmOut motor_ro_b(p22); //モータ逆転 -PwmOut motor_ri_f(p24); //モータ正転 -PwmOut motor_ri_b(p23); //モータ逆転 +PwmOut motor_ro_f(p22); //モータ正転 +PwmOut motor_ro_b(p21); //モータ逆転 +PwmOut motor_ri_f(p23); //モータ正転 +PwmOut motor_ri_b(p24); //モータ逆転 -Ec ec_ro(p5,p6,NC,resolution,0.01); -Ec ec_ri(p8,p7,NC,resolution,0.01); +Ec ec_ro(p8,p7,NC,resolution,0.01); +Ec ec_ri(p11,p6,NC,resolution,0.01); CAN can(p9,p10); -DigitalIn switch1(p12); -DigitalIn switch2(p19); +DigitalIn switch_ro(p12); +DigitalIn switch_ri(p19); DigitalOut air1(p20); DigitalOut air_hand(p17);