robostep8th / Mbed 2 deprecated SCforMatlab

Dependencies:   mbed Encoder

Files at this revision

API Documentation at this revision

Comitter:
mrtkhmbed
Date:
Wed Feb 17 08:16:15 2021 +0000
Parent:
3:e58b5020b1c2
Commit message:
123 while(duty>=-0.85) --> while(duty>-0.85)

Changed in this revision

SCforMatlab.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/SCforMatlab.cpp	Wed Feb 17 08:14:27 2021 +0000
+++ b/SCforMatlab.cpp	Wed Feb 17 08:16:15 2021 +0000
@@ -120,7 +120,7 @@
     duty_count=0;
     measure_mode=MEASURE_CCW;                          //逆転方向測定開始
     ticker_.attach(callback(this,&SCforMatlab::measureTurn),delta_t);
-    while(duty>=-0.85) { //デューティ比の上限は8.5になっている。上げる場合は配列の要素数が足りるか注意してください。
+    while(duty>-0.85) { //デューティ比の上限は8.5になっている。上げる場合は配列の要素数が足りるか注意してください。
         least_squares[duty_count][MEASURE_CCW]=(ec_->getOmega())*GEER;
         duty_count++;
         duty=duty_count*(-0.05);