my new gear...

Dependencies:   mbed

actuator/DCmotor.hpp

Committer:
yootee
Date:
22 months ago
Revision:
22:394337a4205a
Parent:
2:e7b09385d197

File content as of revision 22:394337a4205a:

#pragma once
#include<mbed.h>
#include<portSet.hpp>

class DCmotor
{
public:
    DCmotor(Port motor, float max_pwm, float min_pwm, bool CW_flag);
    DCmotor(PinName pin_a, PinName pin_b, float max_pwm, float min_pwm, bool CW_flag);
    void drive(float pwm);
private:
    Port motor_;
    float max_pwm_;
    float min_pwm_;
    bool CW_flag_;
};