s
Diff: DriveCommand.cpp
- Revision:
- 0:9b6dc5b1dc33
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; + +} +