![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
ese519
Dependencies: MRF24J40 mbed-rtos mbed
Diff: Actuator.h
- Revision:
- 0:ef293aec3a85
diff -r 000000000000 -r ef293aec3a85 Actuator.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Actuator.h Sat Mar 21 02:52:43 2015 +0000 @@ -0,0 +1,23 @@ +#include "mbed.h" +class Actuator{ + private: + int m; + int index; + PwmOut motor; + Timeout to; + + public: + Actuator(int m_, int index_, PwmOut motor_, Timeout to_); + virtual ~Actuator(); + int getM(); + int getIndex(); + PwmOut getMotor(); + Timeout getTo(); + void setM(int m); + void setIndex(int idx); + void setMotor(double pw); + + void shot(); + //void updateMotor(); + + }; \ No newline at end of file