most functionality to splashdwon, find neutral and start mission. short timeouts still in code for testing, will adjust to go directly to sit_idle after splashdown
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