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: Command.h
- Revision:
- 1:13c4bf8989d5
- Parent:
- 0:4bc34a5fcc29
- Child:
- 3:97a5a3744481
--- 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