2018年度用翼端mbedプログラム
Dependencies: Control_Yokutan_CANver1 XBusServo mbed mbed-rtos
Fork of ControlYokutan2017_2 by
Diff: main.cpp
- Branch:
- mpu????????
- Revision:
- 56:2b947d31d307
- Parent:
- 55:eaff0c602c99
- Child:
- 57:d7b709dd1c4f
--- a/main.cpp Fri Apr 21 04:53:50 2017 +0000 +++ b/main.cpp Fri Apr 28 15:25:10 2017 +0000 @@ -26,8 +26,8 @@ #define ERURON_TRIM_INI_L 0.48 // 値をお大きいくすると頭上げ #define DRUG_TRIM_INI_L 0.68//値を小さくすると開く側 -#define PHASE_NUM 13.0 //奇数にしてください。そしてメインコードと必ず同じ値にしてください -#define NEUTRAL_PHASE 7.0 +#define PHASE_NUM 23 //奇数にしてください。そしてメインコードと必ず同じ値にしてください +#define NEUTRAL_PHASE (PHASE_NUM + 1) / 2.0 /*ドラッグラダー 初期値 0.65 @@ -243,7 +243,7 @@ // analog = max; // else if(analog <= min) // analog = min; -// +// // return (min+(analog)*(max-min)); /* int start=510, end=2390;