aa
Dependencies: mbed TrapezoidControl QEI
Diff: System/Process/Process.cpp
- Revision:
- 47:b6e5a6bfe7ab
- Parent:
- 46:4a8bca4cc1fd
- Child:
- 48:d24c325fc0b4
--- a/System/Process/Process.cpp Sat Oct 05 08:11:29 2019 +0000 +++ b/System/Process/Process.cpp Sat Oct 05 21:53:35 2019 +0000 @@ -341,7 +341,7 @@ count=0; mode=1; current = 6; - + } else { count=0; mode=1; @@ -1306,6 +1306,7 @@ motor[TIRE_BR].dir = FOR; motor[TIRE_BL].pwm = 27; motor[TIRE_BL].dir = BACK; + //スタート後どれくらい無検知でうごくか↓ if(g[2]==0&&count>=100000) { count=100000; cross=0; @@ -1350,7 +1351,7 @@ motor[TIRE_BL].pwm = normal; motor[TIRE_BL].dir = BACK; mtc=true; - if(count>80000) { + if(count>100000) { cross++; count=0; }