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 52:ad28166cf6d3, committed 2017-03-26
- Comitter:
- tsumagari
- Date:
- Sun Mar 26 07:14:28 2017 +0000
- Branch:
- mpu????????
- Parent:
- 48:0bd406fa4a7f
- Commit message:
- 3.25??
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Mar 23 15:58:55 2017 +0000 +++ b/main.cpp Sun Mar 26 07:14:28 2017 +0000 @@ -16,14 +16,14 @@ #define MPU_LOOP_TIME 0.01 #define MPU_DELT_MIN 250 -#define ERURON_MOVE_DEG_INI_R 0.9 -#define DRUG_MOVE_DEG_INI_R -0.07 -#define ERURON_TRIM_INI_R 0.35 -#define DRUG_TRIM_INI_R 0.62 +#define ERURON_MOVE_DEG_INI_R 0.7 +#define DRUG_MOVE_DEG_INI_R 0.5 +#define ERURON_TRIM_INI_R 0.58 +#define DRUG_TRIM_INI_R 0.37//値を小さくすると閉じる #define ERURON_MOVE_DEG_INI_L 0.7 -#define DRUG_MOVE_DEG_INI_L -0.10 -#define ERURON_TRIM_INI_L 0.4 +#define DRUG_MOVE_DEG_INI_L -0.50 +#define ERURON_TRIM_INI_L 0.16 #define DRUG_TRIM_INI_L 0.68//値を小さくすると開く側 #define PHASE_NUM 13.0 //偶数にしてください。そしてメインコードと必ず同じ値にしてください @@ -66,7 +66,7 @@ float drugTrim; float eruronMoveDeg; float drugMoveDeg; -int eruronint = 1; +int eruronint = 7; unsigned short ina_val; double V,C; bool SERVO_FLAG;
