firstaa

Dependents:   17robo_fuzi 17robo_tokyo_kaede

Files at this revision

API Documentation at this revision

Comitter:
echo_piyo
Date:
Thu Sep 28 02:23:01 2017 +0000
Parent:
0:46dd0245886c
Commit message:
.cyclicIn() .cyclicOut() ????????

Changed in this revision

cylinder.cpp Show annotated file Show diff for this revision Revisions of this file
cylinder.h Show annotated file Show diff for this revision Revisions of this file
diff -r 46dd0245886c -r d4fa6f96bab5 cylinder.cpp
--- a/cylinder.cpp	Wed Sep 20 07:09:56 2017 +0000
+++ b/cylinder.cpp	Thu Sep 28 02:23:01 2017 +0000
@@ -16,6 +16,16 @@
     } else flag = false;
 }
 
+void Cylinder::cyclicIn(){
+        cylinder_in = 1;
+        cylinder_out = 0;
+}
+
+void Cylinder::cyclicOut(){
+        cylinder_in = 0;
+        cylinder_out = 1;
+}
+
 int Cylinder::getInState(){
     return (int)cylinder_in;
 }
diff -r 46dd0245886c -r d4fa6f96bab5 cylinder.h
--- a/cylinder.h	Wed Sep 20 07:09:56 2017 +0000
+++ b/cylinder.h	Thu Sep 28 02:23:01 2017 +0000
@@ -27,6 +27,8 @@
     void cyclic(int state);
     int getInState();
     int getOutState();
+    void cyclicIn();
+    void cyclicOut();
     
   private:  
     DigitalOut cylinder_in;