![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
my new gear...
actuator/aircylinder.hpp@2:e7b09385d197, 2022-03-27 (annotated)
- Committer:
- yootee
- Date:
- Sun Mar 27 04:39:16 2022 +0000
- Revision:
- 2:e7b09385d197
arrc?
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
yootee | 2:e7b09385d197 | 1 | #pragma once |
yootee | 2:e7b09385d197 | 2 | #include<mbed.h> |
yootee | 2:e7b09385d197 | 3 | #include<portSet.hpp> |
yootee | 2:e7b09385d197 | 4 | |
yootee | 2:e7b09385d197 | 5 | class aircylinder |
yootee | 2:e7b09385d197 | 6 | { |
yootee | 2:e7b09385d197 | 7 | public: |
yootee | 2:e7b09385d197 | 8 | aircylinder(Port port ,bool push_flag); |
yootee | 2:e7b09385d197 | 9 | void push(int cylinder_num); |
yootee | 2:e7b09385d197 | 10 | void pull(int cylinder_num); |
yootee | 2:e7b09385d197 | 11 | private: |
yootee | 2:e7b09385d197 | 12 | Port port_; |
yootee | 2:e7b09385d197 | 13 | bool push_flag_; |
yootee | 2:e7b09385d197 | 14 | }; |