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: machine_ps3.h
- Revision:
- 36:b8954b13a6d5
- Parent:
- 35:7b6786193aa2
- Child:
- 37:75fcd28f48c7
diff -r 7b6786193aa2 -r b8954b13a6d5 machine_ps3.h --- a/machine_ps3.h Sat Nov 14 04:05:13 2015 +0000 +++ b/machine_ps3.h Sun Nov 15 00:30:44 2015 +0000 @@ -1,8 +1,3 @@ -/** - * This library is included main.cpp. - * class "machine" whitch machine functions are structured. - */ - #ifndef MACHINE_H #define MACHINE_H @@ -53,6 +48,7 @@ //Right void Move_r(float speed1) { + if((speed1<0.2)&&(speed1>-0.2)) speed1=0.0; if(speed1<0) { Move_r_Motor_CCW = 1; Move_r_Motor_CW = 0; @@ -66,6 +62,7 @@ //Left void Move_l(float speed2) { + if((speed2<0.2)&&(speed2>-0.2)) speed2=0.0; if(speed2<0) { Move_l_Motor_CCW = 1; Move_l_Motor_CW = 0;