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

Committer:
tnhnrl
Date:
Wed Feb 14 21:10:51 2018 +0000
Revision:
41:ed5b95ab97e3
Parent:
PololuHbridge/PololuHbridge.hpp@9:d5fcdcb3c89d
Servo Class Added (just the class)

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mkelly10 9:d5fcdcb3c89d 1 #ifndef POLOLUHBRIDGE_HPP
mkelly10 9:d5fcdcb3c89d 2 #define POLOLUHBRIDGE_HPP
mkelly10 9:d5fcdcb3c89d 3
mkelly10 9:d5fcdcb3c89d 4 #include "mbed.h"
mkelly10 9:d5fcdcb3c89d 5
mkelly10 9:d5fcdcb3c89d 6 class PololuHBridge
mkelly10 9:d5fcdcb3c89d 7 {
mkelly10 9:d5fcdcb3c89d 8 public:
mkelly10 9:d5fcdcb3c89d 9 PololuHBridge(PinName pwm, PinName dir, PinName reset);
mkelly10 9:d5fcdcb3c89d 10
mkelly10 9:d5fcdcb3c89d 11 void run(float cmd);
mkelly10 9:d5fcdcb3c89d 12 void reset();
mkelly10 9:d5fcdcb3c89d 13 void stop();
mkelly10 9:d5fcdcb3c89d 14
mkelly10 9:d5fcdcb3c89d 15 protected:
mkelly10 9:d5fcdcb3c89d 16 PwmOut _pwm;
mkelly10 9:d5fcdcb3c89d 17 DigitalOut _direction;
mkelly10 9:d5fcdcb3c89d 18 DigitalOut _rst;
mkelly10 9:d5fcdcb3c89d 19 float _p;
mkelly10 9:d5fcdcb3c89d 20 float _clamp(float value, float min, float max);
mkelly10 9:d5fcdcb3c89d 21 };
mkelly10 9:d5fcdcb3c89d 22
mkelly10 9:d5fcdcb3c89d 23 #endif