Xiaofei Qiu / Command
Revision:
3:97a5a3744481
Parent:
1:13c4bf8989d5
Child:
4:3fbe2d75f7eb
diff -r 3d1c13d63966 -r 97a5a3744481 Command.h
--- a/Command.h	Sat Nov 28 00:57:26 2015 +0000
+++ b/Command.h	Sat Nov 28 02:34:41 2015 +0000
@@ -8,11 +8,11 @@
     Command(const Command&);
     virtual ~Command(){}
     virtual void execute() = 0; 
-    void setSpeed(const std::int8_t& l_sp=0.5,const std::int8_t& r_sp=0.5);
+    void setSpeed(const std::int8_t& sp=0.5, const std::int8_t& is_negative = 0);
     
 protected:
-    float _LEFT_SPEED;
-    float _RIGHT_SPEED;
+    float _SPEED;
+    bool  _IS_NEGATIVE;
 };
 
 class LedCommand : public Command