s

Committer:
Maor_T
Date:
Mon Jul 04 15:22:37 2016 +0000
Revision:
0:9b6dc5b1dc33
s

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Maor_T 0:9b6dc5b1dc33 1 #include "DriveCommand.h"
Maor_T 0:9b6dc5b1dc33 2 #include "mbed.h"
Maor_T 0:9b6dc5b1dc33 3
Maor_T 0:9b6dc5b1dc33 4
Maor_T 0:9b6dc5b1dc33 5 DriveCommand::DriveCommand(char dir,float time)
Maor_T 0:9b6dc5b1dc33 6 {
Maor_T 0:9b6dc5b1dc33 7 _dir = dir;
Maor_T 0:9b6dc5b1dc33 8 _time = time;
Maor_T 0:9b6dc5b1dc33 9
Maor_T 0:9b6dc5b1dc33 10 }
Maor_T 0:9b6dc5b1dc33 11
Maor_T 0:9b6dc5b1dc33 12
Maor_T 0:9b6dc5b1dc33 13 float DriveCommand::GetTime()
Maor_T 0:9b6dc5b1dc33 14 {
Maor_T 0:9b6dc5b1dc33 15 return _time;
Maor_T 0:9b6dc5b1dc33 16 }
Maor_T 0:9b6dc5b1dc33 17
Maor_T 0:9b6dc5b1dc33 18
Maor_T 0:9b6dc5b1dc33 19
Maor_T 0:9b6dc5b1dc33 20 char DriveCommand::GetDir()
Maor_T 0:9b6dc5b1dc33 21 {
Maor_T 0:9b6dc5b1dc33 22 return _dir;
Maor_T 0:9b6dc5b1dc33 23 }
Maor_T 0:9b6dc5b1dc33 24
Maor_T 0:9b6dc5b1dc33 25
Maor_T 0:9b6dc5b1dc33 26 void DriveCommand::SetTime(float time)
Maor_T 0:9b6dc5b1dc33 27 {
Maor_T 0:9b6dc5b1dc33 28 _time = time;
Maor_T 0:9b6dc5b1dc33 29
Maor_T 0:9b6dc5b1dc33 30 }
Maor_T 0:9b6dc5b1dc33 31 void DriveCommand::SetDir(char dir)
Maor_T 0:9b6dc5b1dc33 32 {
Maor_T 0:9b6dc5b1dc33 33 _dir = dir;
Maor_T 0:9b6dc5b1dc33 34
Maor_T 0:9b6dc5b1dc33 35 }
Maor_T 0:9b6dc5b1dc33 36