Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: Control_Yokutan_CANver1 ADXL345_I2C mbed MPU6050
Fork of Souda_Yokutan_ver528TF by
Revision 56:2b947d31d307, committed 2017-04-28
- Comitter:
- YusukeWakuta
- Date:
- Fri Apr 28 15:25:10 2017 +0000
- Branch:
- mpu????????
- Parent:
- 55:eaff0c602c99
- Child:
- 57:d7b709dd1c4f
- Commit message:
- ??????
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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;
