Xiaofei Qiu / Command
Revision:
1:13c4bf8989d5
Parent:
0:4bc34a5fcc29
Child:
3:97a5a3744481
diff -r 4bc34a5fcc29 -r 13c4bf8989d5 Command.h
--- a/Command.h	Sat Nov 21 17:17:41 2015 +0000
+++ b/Command.h	Sun Nov 22 01:04:17 2015 +0000
@@ -4,14 +4,15 @@
 class Command
 {
 public:
-    Command():_speed(0){}
+    Command();
     Command(const Command&);
     virtual ~Command(){}
     virtual void execute() = 0; 
-    void setSpeed(const std::int8_t& sp){_speed = sp;}
+    void setSpeed(const std::int8_t& l_sp=0.5,const std::int8_t& r_sp=0.5);
     
 protected:
-    float _speed;
+    float _LEFT_SPEED;
+    float _RIGHT_SPEED;
 };
 
 class LedCommand : public Command
@@ -54,4 +55,4 @@
 public:
     StopCommand(){}
     virtual void execute();
-};
+};
\ No newline at end of file