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

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers PololuHBridge.hpp Source File

PololuHBridge.hpp

00001 #ifndef POLOLUHBRIDGE_HPP
00002 #define POLOLUHBRIDGE_HPP
00003 
00004 #include "mbed.h"
00005 
00006 class PololuHBridge
00007 {
00008 public:
00009     PololuHBridge(PinName pwm, PinName dir, PinName reset);
00010     
00011     void run(float cmd);
00012     void reset();
00013     void stop();
00014 
00015 protected:
00016     PwmOut _pwm;
00017     DigitalOut _direction;
00018     DigitalOut _rst;
00019     float _p;
00020     float _clamp(float value, float min, float max);
00021 };
00022 
00023 #endif