the fish that looks like a jet

Dependencies:   ADXL345 ADXL345_I2C IMUfilter ITG3200 mbed Servo

motor_controller.h

Committer:
rkk
Date:
2014-02-01
Revision:
12:7eeb29892625
Parent:
11:8ec915eb70f6

File content as of revision 12:7eeb29892625:

#pragma once
#include "mbed.h"

#define FREQ_MIN 0.5  //Hz
#define FREQ_MAX 3  //Hz

float sigm(float input);

class PololuMController
{
    private:
    PwmOut pwm;
    DigitalOut outA;
    DigitalOut outB;
    
    
    public:
    PololuMController();
    PololuMController(PinName pwmport, PinName A, PinName B);
    void setpolarspeed(float speed);    //-1 to 1
};