2017ロボコンはやとブーメランプログラム

Dependencies:   PID QEI ikarashiMDC recieveController omni

Spiral.h

Committer:
WAT34
Date:
2017-12-01
Revision:
25:fd4fb86b4148
Parent:
18:4b629221c215
Child:
20:d052a0679309
Child:
21:aad4a4adc18c

File content as of revision 25:fd4fb86b4148:

#ifndef  SPIRAL_H
#define SPIRAL_H

#include "mbed.h"
#include "ikarashiMDC.h"

class Spiral
{
public:
  Spiral(ikarashiMDC *spiralMotor_);
  int rotate();
  bool firing;
  float beltSpeed,spiralSpeed;
  InterruptIn *spiralLimit;


private:
  ikarashiMDC *spiralMotor;
  bool rotating;
  void stopRotation();
  void beltStop();
  void beltStart();
  Timeout beltTime;
};

#endif /* end of include guard: SPIRAL_H */