update with altimeter, swimfile.txt endleg.txt, etc see changes_13sep.txt also reset_PI()

Dependencies:   mbed MODSERIAL FATFileSystem

PololuHbridge/PololuHBridge.hpp

Committer:
joel_ssc
Date:
2019-09-13
Revision:
104:426224a55f5f
Parent:
62:d502889e74f1

File content as of revision 104:426224a55f5f:

#ifndef POLOLUHBRIDGE_HPP
#define POLOLUHBRIDGE_HPP

#include "mbed.h"

class PololuHBridge
{
public:
    PololuHBridge(PinName pwm, PinName dir, PinName reset);
    
    void run(float cmd);
    void reset();
    void stop();

protected:
    PwmOut _pwm;
    DigitalOut _direction;
    DigitalOut _rst;
    float _p;
    float _clamp(float value, float min, float max);
};

#endif