2018年度用翼端mbedプログラム
Dependencies: Control_Yokutan_CANver1 XBusServo mbed mbed-rtos
Fork of ControlYokutan2017_2 by
Diff: main.cpp
- Branch:
- XBus???
- Revision:
- 30:00041540e23c
- Parent:
- 29:516a5d383488
- Child:
- 31:5d22ebe5f705
diff -r 516a5d383488 -r 00041540e23c main.cpp --- a/main.cpp Fri Mar 10 07:48:48 2017 +0000 +++ b/main.cpp Fri Mar 10 08:12:54 2017 +0000 @@ -12,14 +12,14 @@ #define SEND_DATAS_LOOP_TIME 0.1 #define RECEIVE_DATAS_LOOP_TIME 0.05 -#define ERURON_MOVE_DEG_INI_R 30 // もともと10 +#define ERURON_MOVE_DEG_INI_R 30 #define DRUG_MOVE_DEG_INI_R 76 -#define ERURON_TRIM_INI_R 97 //元々94 +#define ERURON_TRIM_INI_R 97 #define DRUG_TRIM_INI_R 33 -#define ERURON_MOVE_DEG_INI_L -30 //もともと-7 +#define ERURON_MOVE_DEG_INI_L -30 #define DRUG_MOVE_DEG_INI_L -80 -#define ERURON_TRIM_INI_L 113 //元々95 +#define ERURON_TRIM_INI_L 113 #define DRUG_TRIM_INI_L 110 #define kMaxServoNum 1 // 1 - 50 @@ -223,6 +223,11 @@ { init(); XBusError result; + + setTrimPin.mode(PullDown); + setMaxDegPin.mode(PullDown); + EDstatePin.mode(PullDown); + LRstatePin.mode(PullDown); // start motion gTimer.attach_us(&XbusIntervalHandler, 1000000 / kMotionInterval);