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:
- joel_ssc
- Date:
- 2019-05-13
- Revision:
- 92:52a91656458a
- Parent:
- 62:d502889e74f1
File content as of revision 92:52a91656458a:
#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