Ries Twisk / Mbed 2 deprecated JoyStick

Dependencies:   USBDevice mbed-rtos mbed

Fork of JoyStick by Ries Twisk

AntiLog.h

Committer:
rvt
Date:
2013-08-28
Revision:
0:33bc88c4ab31

File content as of revision 0:33bc88c4ab31:

#ifndef ANTILOG_H
#define ANTILOG_H
#include "mbed.h"
#include "AnalogFilterInterface.h"

/**
Class to remove the logaritmic function of a potentiometer
**/
class AntiLog : public AnalogFilterInterface  {
    private:
        long antiLog;
        double curve;
        int* _filterData;
    public:   
        AntiLog(AnalogFilterInterface *chain, double curve);
        ~AntiLog();
        virtual void setData(long data);
        virtual long getData(); 
};

#endif