ese519

Dependencies:   MRF24J40 mbed-rtos mbed

Actuator.h

Committer:
Jing_Qiu
Date:
2015-03-21
Revision:
0:ef293aec3a85

File content as of revision 0:ef293aec3a85:

#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();
    
    };