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 XBusServo mbed mbed-rtos
Fork of ControlYokutan2017_2 by
Revision 62:1db967d29809, committed 2017-06-10
- Comitter:
- YusukeWakuta
- Date:
- Sat Jun 10 07:52:24 2017 +0000
- Branch:
- mpu????????
- Parent:
- 61:988e3f4280ac
- Child:
- 63:52b882a5968c
- Commit message:
- ?????;
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed Jun 07 15:14:10 2017 +0000
+++ b/main.cpp Sat Jun 10 07:52:24 2017 +0000
@@ -24,7 +24,7 @@
#define ERURON_MOVE_DEG_INI_L -19.4 //degree
#define DRUG_MOVE_DEG_INI_L -0.44
-#define ERURON_TRIM_INI_L 0.402 // 値をお大きいくすると頭上げ
+#define ERURON_TRIM_INI_L 0.402 // 値を大きくすると頭上げ
#define DRUG_TRIM_INI_L 0.73//値を小さくすると開く側
/*ドラッグラダー
@@ -185,7 +185,8 @@
//動かしたいエレボンの角度から、動かしたいサーボホーンの角度を得る。
double ConvertDeg(double servo)
{
- return 0.0003*pow(servo,3)+0.0039*pow(servo,2)+1.746*servo - 0.0105;
+ return 0.0011 * pow(servo,3) + 0.017 * pow(servo,2) + 2.3019 * servo - 0.2269;
+ //return 0.0003*pow(servo,3)+0.0039*pow(servo,2)+1.746*servo - 0.0105;
}
//ホーンを動かしたい角度から、変化させるアナログ値の幅を得る。3度変化
@@ -253,7 +254,7 @@
void WriteServo()
{
- // for(int i = 0; i< 10; i++) {
+ // for(int i = 0; i< 10; i++) {
// pc.printf("%c",floatValues[i]);
// }
// pc.printf(" : %f",eruronfloat);
