![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
2017ロボコンはやとブーメランプログラム
Dependencies: PID QEI ikarashiMDC recieveController omni
gakugaku.h@20:d052a0679309, 2017-11-06 (annotated)
- Committer:
- WAT34
- Date:
- Mon Nov 06 18:54:45 2017 +0900
- Revision:
- 20:d052a0679309
- Parent:
- 19:31784928ec2d
belt pided
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
WAT34 | 19:31784928ec2d | 1 | #ifndef GAKUGAKU_H |
WAT34 | 19:31784928ec2d | 2 | #define GAKUGAKU_H |
WAT34 | 19:31784928ec2d | 3 | |
WAT34 | 19:31784928ec2d | 4 | #include "mbed.h" |
WAT34 | 19:31784928ec2d | 5 | #include "ikarashiMDC.h" |
WAT34 | 19:31784928ec2d | 6 | |
WAT34 | 19:31784928ec2d | 7 | class gakugaku { |
WAT34 | 19:31784928ec2d | 8 | private: |
WAT34 | 19:31784928ec2d | 9 | ikarashiMDC *swingMotor,*angleMotor; |
WAT34 | 19:31784928ec2d | 10 | bool swinging; |
WAT34 | 19:31784928ec2d | 11 | double anglingSpeed; |
WAT34 | 19:31784928ec2d | 12 | DigitalOut *rscs,*deploy; |
WAT34 | 19:31784928ec2d | 13 | Timeout timer; |
WAT34 | 19:31784928ec2d | 14 | void deployStop(); |
WAT34 | 19:31784928ec2d | 15 | |
WAT34 | 19:31784928ec2d | 16 | public: |
WAT34 | 19:31784928ec2d | 17 | gakugaku(Serial* serial_); |
WAT34 | 19:31784928ec2d | 18 | void update(); |
WAT34 | 19:31784928ec2d | 19 | void setAnglingSpeed(const double& anglingSpeed_); |
WAT34 | 20:d052a0679309 | 20 | void Swing(bool swing); |
WAT34 | 19:31784928ec2d | 21 | void Deploy(); |
WAT34 | 19:31784928ec2d | 22 | |
WAT34 | 19:31784928ec2d | 23 | }; |
WAT34 | 19:31784928ec2d | 24 | |
WAT34 | 19:31784928ec2d | 25 | |
WAT34 | 19:31784928ec2d | 26 | |
WAT34 | 19:31784928ec2d | 27 | #endif /* end of include guard: GAKUGAKU_H */ |