yuto kawamura
/
George_Slave_BOTHMOVE
right and left move at the same time
Diff: pin.h
- Revision:
- 0:411ab20ce87d
- Child:
- 1:34371ffd3dc0
diff -r 000000000000 -r 411ab20ce87d pin.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pin.h Fri Apr 26 11:34:44 2019 +0000 @@ -0,0 +1,26 @@ +#include "mbed.h" +#include "EC.h" +#include "KondoServo.h" + +double resolution=500; + +PwmOut motor_ro_f(p21); //モータ正転 +PwmOut motor_ro_b(p22); //モータ逆転 +PwmOut motor_ri_f(p24); //モータ正転 +PwmOut motor_ri_b(p23); //モータ逆転 + +Ec ec_ro(p5,p6,NC,resolution,0.01); +Ec ec_ri(p8,p7,NC,resolution,0.01); + +CAN can(p9,p10); + +DigitalIn switch1(p12); +DigitalIn switch2(p19); + +DigitalOut air1(p20); +DigitalOut air_hand(p17); + +DigitalOut led1(LED1); +DigitalOut led2(LED2); + +KondoServo servo(p13,p14,1,115200); \ No newline at end of file