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.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
Generated on Thu Jul 14 2022 10:54:35 by 1.7.2