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-02-14
- Revision:
- 41:ed5b95ab97e3
- Parent:
- PololuHbridge/PololuHbridge.hpp@ 9:d5fcdcb3c89d
File content as of revision 41:ed5b95ab97e3:
#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