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.
DriveCommand.cpp
00001 #include "DriveCommand.h" 00002 #include "mbed.h" 00003 00004 00005 DriveCommand::DriveCommand(char dir,float time) 00006 { 00007 _dir = dir; 00008 _time = time; 00009 00010 } 00011 00012 00013 float DriveCommand::GetTime() 00014 { 00015 return _time; 00016 } 00017 00018 00019 00020 char DriveCommand::GetDir() 00021 { 00022 return _dir; 00023 } 00024 00025 00026 void DriveCommand::SetTime(float time) 00027 { 00028 _time = time; 00029 00030 } 00031 void DriveCommand::SetDir(char dir) 00032 { 00033 _dir = dir; 00034 00035 } 00036
Generated on Mon Jul 18 2022 14:23:38 by
1.7.2