Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of clubvs2017_momoi by
Diff: User.cpp
- Revision:
- 21:f4c8994122cc
- Parent:
- 20:26099c7e87c6
- Child:
- 22:a89e9c4fe7c4
--- a/User.cpp Thu Mar 30 06:26:57 2017 +0000 +++ b/User.cpp Thu Mar 30 06:42:25 2017 +0000 @@ -134,13 +134,13 @@ motorLeftTwo = 0; } - if(( ButtonState >> BUTTONR1)&1 == 1) { + if(( ButtonState >> BUTTONL1)&1 == 1) { motorRightOne = 0.7 + flag; motorRightTwo = 0; motorLeftOne = 0; motorLeftTwo = 0.7 + flag; } - if(( ButtonState >> BUTTONL1)&1 == 1) { + if(( ButtonState >> BUTTONR1)&1 == 1) { motorRightOne = 0; motorRightTwo = 0.6 + flag; motorLeftOne = 0.6 + flag;