update with altimeter, swimfile.txt endleg.txt, etc see changes_13sep.txt also reset_PI()
Dependencies: mbed MODSERIAL FATFileSystem
PololuHbridge/PololuHBridge.hpp
- Committer:
- tnhnrl
- Date:
- 2018-06-18
- Revision:
- 62:d502889e74f1
File content as of revision 62:d502889e74f1:
#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