Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: PID QEI ikarashiMDC recieveController omni
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 */
Generated on Sun Jul 31 2022 12:04:46 by
