ese519
Dependencies: MRF24J40 mbed-rtos mbed
Actuator.h
00001 #include "mbed.h" 00002 class Actuator{ 00003 private: 00004 int m; 00005 int index; 00006 PwmOut motor; 00007 Timeout to; 00008 00009 public: 00010 Actuator(int m_, int index_, PwmOut motor_, Timeout to_); 00011 virtual ~Actuator(); 00012 int getM(); 00013 int getIndex(); 00014 PwmOut getMotor(); 00015 Timeout getTo(); 00016 void setM(int m); 00017 void setIndex(int idx); 00018 void setMotor(double pw); 00019 00020 void shot(); 00021 //void updateMotor(); 00022 00023 };
Generated on Thu Jul 14 2022 21:06:33 by 1.7.2