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.
Dependencies: mbed X_NUCLEO_PLC01A1 ros_lib_melodic
Diff: uv_robot.cpp
- Revision:
- 0:43eb9ccc1583
- Child:
- 1:ef4b86795d79
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/uv_robot.cpp Sat Aug 08 23:54:01 2020 +0000
@@ -0,0 +1,23 @@
+#include "uv_robot.h"
+
+enum state UVRobot::getState(){
+ return _robotState;
+}
+
+void UVRobot::setState( enum state robotState ){
+ _robotState = robotState;
+}
+
+void UVRobot::init(){
+ setState( Init );
+
+ setState( Idle );
+}
+
+void UVRobot::start(){
+ _robotState = Run;
+}
+
+void UVRobot::stop(){
+ _robotState = Idle;
+}
\ No newline at end of file