2015_robocon_bteam / Mbed 2 deprecated 2015robot_main_zenkoku

Dependencies:   PID QEI mbed

Revision:
36:b8954b13a6d5
Parent:
35:7b6786193aa2
Child:
37:75fcd28f48c7
--- 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;