• R/O
  • SSH
  • HTTPS

team-ncxx-sl: Commit


Commit MetaInfo

Revision403 (tree)
Time2018-09-01 11:16:08
Authorwada-yukino

Log Message

(empty log message)

Change Summary

Incremental Difference

--- trunk/src/hrp2_beta7/sdk/workspace/sample_cpp2/course/LookupGate.cpp (revision 402)
+++ trunk/src/hrp2_beta7/sdk/workspace/sample_cpp2/course/LookupGate.cpp (revision 403)
@@ -596,7 +596,7 @@
596596 bool LookupGate::SpinRight() {
597597 int32_t motorAngle = ev3_motor_get_counts(right_motor);
598598 if (targetSpinCount == 0) {
599- targetSpinCount = motorAngle + 360;
599+ targetSpinCount = motorAngle + 300;
600600 //targetSpinCount = motorAngle - 330;
601601 ev3_motor_stop(left_motor, true);
602602 }
@@ -614,8 +614,8 @@
614614 bool LookupGate::SpinLeft() {
615615 int32_t motorAngle = ev3_motor_get_counts(left_motor);
616616 if (targetSpinCount == 0) {
617- targetSpinCount = motorAngle - 200;
618- targetSpinCountBack = motorAngle - 600;
617+ targetSpinCount = motorAngle - 360;
618+// targetSpinCountBack = motorAngle - 600;
619619 //targetSpinCount = motorAngle + 390;
620620 ev3_motor_stop(right_motor, true);
621621 }
@@ -624,11 +624,11 @@
624624 ev3_motor_set_power(left_motor, -10);
625625 return false;
626626 } else {
627- if(targetSpinCountBack < motorAngle){
628- ev3_motor_set_power(left_motor, -10);
629- ev3_motor_set_power(right_motor, -10);
630- return false;
631- }
627+// if(targetSpinCountBack < motorAngle){
628+// ev3_motor_set_power(left_motor, -10);
629+// ev3_motor_set_power(right_motor, -10);
630+// return false;
631+// }
632632 ev3_motor_stop(left_motor, true);
633633 targetSpinCount = 0;
634634 return true;
Show on old repository browser