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.
Diff: MDDS30_oit.cpp
- Revision:
- 5:40f33560d8a1
- Parent:
- 4:085a9c395959
--- a/MDDS30_oit.cpp Sat Jul 24 11:13:57 2021 +0000
+++ b/MDDS30_oit.cpp Sat Jul 24 11:17:27 2021 +0000
@@ -19,7 +19,7 @@
}
void MDDS30oit::lefttire(float speed){
- speed=speed*127.0f;
+ speed=speed*63.0f;
if(speed>0){
direction=(word2<<1)|0;
}
@@ -34,7 +34,7 @@
}
void MDDS30oit::righttire(float speed){
- speed=speed*127.0f;
+ speed=speed*63.0f;
if(speed>0){
direction=(word<<1)|0;
}