2017ロボコンはやとブーメランプログラム
Dependencies: PID QEI ikarashiMDC recieveController omni
Spiral.h@3:01947ec86f09, 2017-08-24 (annotated)
- Committer:
- WAT34
- Date:
- Thu Aug 24 20:51:12 2017 +0900
- Revision:
- 3:01947ec86f09
- Child:
- 6:0bee4b2bb400
compiled!!
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
WAT34 | 3:01947ec86f09 | 1 | #ifndef SPIRAL_H |
WAT34 | 3:01947ec86f09 | 2 | #define SPIRAL_H |
WAT34 | 3:01947ec86f09 | 3 | |
WAT34 | 3:01947ec86f09 | 4 | #include "mbed.h" |
WAT34 | 3:01947ec86f09 | 5 | #include "ikarashiMDC.h" |
WAT34 | 3:01947ec86f09 | 6 | |
WAT34 | 3:01947ec86f09 | 7 | class Spiral |
WAT34 | 3:01947ec86f09 | 8 | { |
WAT34 | 3:01947ec86f09 | 9 | public: |
WAT34 | 3:01947ec86f09 | 10 | Spiral(ikarashiMDC* spiralMotor_); |
WAT34 | 3:01947ec86f09 | 11 | int rotate(); |
WAT34 | 3:01947ec86f09 | 12 | |
WAT34 | 3:01947ec86f09 | 13 | private: |
WAT34 | 3:01947ec86f09 | 14 | void stopRotation(); |
WAT34 | 3:01947ec86f09 | 15 | void reversePrep(); |
WAT34 | 3:01947ec86f09 | 16 | void reverseRotation(); |
WAT34 | 3:01947ec86f09 | 17 | InterruptIn *spiralLimit; |
WAT34 | 3:01947ec86f09 | 18 | ikarashiMDC *spiralMotor; |
WAT34 | 3:01947ec86f09 | 19 | bool rotating; |
WAT34 | 3:01947ec86f09 | 20 | }; |
WAT34 | 3:01947ec86f09 | 21 | |
WAT34 | 3:01947ec86f09 | 22 | #endif /* end of include guard: SPIRAL_H */ |