
3/18 操舵中央
Dependencies: mbed
Fork of Control_Main_Full_ver2 by
Diff: main.cpp
- Revision:
- 6:7484315ba88a
- Parent:
- 5:6b74fa61198e
--- a/main.cpp Thu Feb 25 09:13:08 2016 +0000 +++ b/main.cpp Fri Mar 18 06:16:21 2016 +0000 @@ -5,18 +5,18 @@ #define YOKUTAN_DATAS_NUM 4 #define IMPUT_DATAS_NUM 2 #define SEND_DATAS_CAN_ID 100 -#define SEND_DATAS_TIME 0.5 +#define SEND_DATAS_TIME 0.1 #define THRESHOLD_OH_VALUE 0.14 #define CALC_CADENCE_TIME 0.05 -CAN can_R(p9,p10); -CAN can_L(p30,p29); +CAN can_R(p30,p29); +CAN can_L(p9,p10); Serial toKeikiSerial(p13,p14); Serial pc(USBTX,USBRX); -DigitalIn eruron_R(p23); -DigitalIn eruron_L(p19); -DigitalIn drug_R(p22); -DigitalIn drug_L(p20); +DigitalIn eruron_R(p22); +DigitalIn eruron_L(p20); +DigitalIn drug_R(p23); +DigitalIn drug_L(p19); DigitalOut myled1(LED1); DigitalOut myled2(LED2); Ticker sendDatasTicker;