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:
- 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