Suga koubou
/
Motor_TB6612
see https://mbed.org/users/okini3939/notebook/motor/
Revision 1:02b46ad7dcac, committed 2013-02-05
- Comitter:
- okini3939
- Date:
- Tue Feb 05 04:11:53 2013 +0000
- Parent:
- 0:bdcbec496e71
- Commit message:
- fix
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r bdcbec496e71 -r 02b46ad7dcac main.cpp --- a/main.cpp Tue Feb 05 02:39:17 2013 +0000 +++ b/main.cpp Tue Feb 05 04:11:53 2013 +0000 @@ -10,8 +10,8 @@ if (num == 1) { if (brake) { m1p = 1; - m1a = 0; - m1b = 0; + m1a = 1; + m1b = 1; } else if (speed > 0) { m1p = speed; @@ -31,8 +31,8 @@ if (num == 2) { if (brake) { m2p = 1; - m2a = 0; - m2b = 0; + m2a = 1; + m2b = 1; } else if (speed > 0) { m2p = speed;