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.
Revision 0:9b6dc5b1dc33, committed 2016-07-04
- Comitter:
- Maor_T
- Date:
- Mon Jul 04 15:22:37 2016 +0000
- Commit message:
- s
Changed in this revision
| DriveCommand.cpp | Show annotated file Show diff for this revision Revisions of this file |
| DriveCommand.h | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/DriveCommand.cpp Mon Jul 04 15:22:37 2016 +0000
@@ -0,0 +1,36 @@
+#include "DriveCommand.h"
+#include "mbed.h"
+
+
+DriveCommand::DriveCommand(char dir,float time)
+{
+ _dir = dir;
+ _time = time;
+
+}
+
+
+float DriveCommand::GetTime()
+{
+ return _time;
+}
+
+
+
+char DriveCommand::GetDir()
+{
+ return _dir;
+}
+
+
+void DriveCommand::SetTime(float time)
+{
+ _time = time;
+
+}
+void DriveCommand::SetDir(char dir)
+{
+ _dir = dir;
+
+}
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/DriveCommand.h Mon Jul 04 15:22:37 2016 +0000
@@ -0,0 +1,39 @@
+#ifndef DRIVECOMMAND_H
+#define DRIVECOMMAND_H
+
+
+class DriveCommand
+{
+ public:
+
+ DriveCommand(char dir,float timeInSec);
+ DriveCommand(){}
+ float GetTime();
+ char GetDir();
+ void SetTime(float time);
+ void SetDir(char dir);
+
+ private:
+ char _dir;
+ float _time;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+};
+
+
+
+
+#endif
\ No newline at end of file