• R/O
  • SSH
  • HTTPS

team-ncxx-sl: コミット


コミットメタ情報

リビジョン359 (tree)
日時2017-08-19 10:56:53
作者ono0617

ログメッセージ

(メッセージはありません)

変更サマリ

差分

--- trunk/src/hrp2_beta7/sdk/workspace/sample_cpp2/course/StartToGoalL.cpp (revision 358)
+++ trunk/src/hrp2_beta7/sdk/workspace/sample_cpp2/course/StartToGoalL.cpp (revision 359)
@@ -23,7 +23,7 @@
2323 // スピードダウン
2424 mode = SpeedDown;
2525 // 次モードのforward値
26- minSpeed = 90;
26+ minSpeed = 100;
2727 }
2828 else if(totalAvg < 7400) {
2929 // 第1カーブ(A地点からB地点まで)
@@ -30,7 +30,7 @@
3030 mode = Curve;
3131 }
3232 else if(totalAvg < 9500) {
33- mode = Straight;
33+ //mode = Straight;
3434 forward = 120;
3535 }
3636 else if(totalAvg < 10600) {
@@ -38,15 +38,11 @@
3838 }
3939 else if(totalAvg < 12000) {
4040 mode = Curve;
41- forward = 80;
41+ //forward = 80;
4242 }
4343 else if(totalAvg < 20000000) {
4444 mode = Straight;
45- forward = 140;
4645 }
47- else if(totalAvg < 10670) {
48-
49- }
5046 else {
5147 // ゴール通過後 次の走行クラス(難所)へ切り替え
5248 return true;
@@ -55,9 +51,9 @@
5551 // ログ出力 コメントアウト
5652 int colorSensor = ev3_color_sensor_get_reflect(EV3_PORT_3);
5753 int touchSensor = ev3_touch_sensor_is_pressed(EV3_PORT_1);
58- if(touchSensor == 1){
54+// if(touchSensor == 1){
5955 log("%f, %d, %f, %d, %d, %d\r\n", totalAvg, mode, forward, colorSensor, volt, touchSensor);
60- }
56+// }
6157 return false;
6258 }
6359
@@ -86,7 +82,7 @@
8682 BaseCourse::SpeedDown(minSpeed);
8783 }
8884 else if(mode == Curve) {
89- forward = 90;
85+ forward = 100;
9086 }
9187 }
9288
--- trunk/src/hrp2_beta7/sdk/workspace/sample_cpp2/course/StartToGoalR.cpp (revision 358)
+++ trunk/src/hrp2_beta7/sdk/workspace/sample_cpp2/course/StartToGoalR.cpp (revision 359)
@@ -43,9 +43,8 @@
4343 else if(totalAvg < 12100) {
4444 mode = ThirdCurve;
4545 }
46- else if(totalAvg < 20000) {
46+ else if(totalAvg < 20000000) {
4747 mode = Straight;
48- forward = 140;
4948 }
5049 else {
5150 // ゴール通過後 次の走行クラス(難所)へ切り替え
@@ -55,9 +54,9 @@
5554 // ログ出力 コメントアウト
5655 int colorSensor = ev3_color_sensor_get_reflect(EV3_PORT_3);
5756 int touchSensor = ev3_touch_sensor_is_pressed(EV3_PORT_1);
58- if(touchSensor == 1){
57+ //if(touchSensor == 1){
5958 log("%f, %d, %f, %d, %d, %d\r\n", totalAvg, mode, forward, colorSensor, volt, touchSensor);
60- }
59+ //}
6160 return false;
6261 }
6362
@@ -85,13 +84,13 @@
8584 BaseCourse::SpeedDown(minSpeed);
8685 }
8786 else if(mode == FirstCurve) {
88- forward = 90;
87+ forward = 110;//90
8988 }
9089 else if(mode == SecondCurve) {
91- forward = 70;
90+ forward = 110;//70
9291 }
9392 else if(mode == ThirdCurve) {
94- forward = 100;
93+ forward = 110;
9594 }
9695 }
9796
旧リポジトリブラウザで表示