NagaokaRoboticsClub_mbedTeam / Mbed OS hayatoShooter

Dependencies:   PID QEI ikarashiMDC recieveController omni

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Spiral.h Source File

Spiral.h

00001 #ifndef  SPIRAL_H
00002 #define SPIRAL_H
00003 
00004 #include "mbed.h"
00005 #include "ikarashiMDC.h"
00006 
00007 class Spiral
00008 {
00009 public:
00010   Spiral(ikarashiMDC *spiralMotor_);
00011   int rotate();
00012   bool firing;
00013   float beltSpeed,spiralSpeed;
00014   InterruptIn *spiralLimit;
00015 
00016 
00017 private:
00018   ikarashiMDC *spiralMotor;
00019   bool rotating;
00020   void stopRotation();
00021   void beltStop();
00022   void beltStart();
00023   Timeout beltTime;
00024 };
00025 
00026 #endif /* end of include guard: SPIRAL_H */