firstaa
Dependents: 17robo_fuzi 17robo_tokyo_kaede
Diff: cylinder.cpp
- Revision:
- 1:d4fa6f96bab5
- Parent:
- 0:46dd0245886c
--- 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; }