s

Files at this revision

API Documentation at this revision

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
diff -r 000000000000 -r 9b6dc5b1dc33 DriveCommand.cpp
--- /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;
+
+}
+
diff -r 000000000000 -r 9b6dc5b1dc33 DriveCommand.h
--- /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