Generates reference based on analog input

Dependents:   locomotion_pid_action_refactor_EMG

refGen.h

Committer:
tvlogman
Date:
2017-10-22
Revision:
5:7186da6f562f
Parent:
4:38af2aa14a3f
Child:
6:a8a82cee2705

File content as of revision 5:7186da6f562f:

#ifndef REFGEN_H
#define REFGEN_H

#include "mbed.h"


class refGen {
public:
    refGen(PinName, float); // Constructor sets up the pin to read the reference from
    float getReference(); // Gets reference position on specified pin
    float maxAngle;
    bool r_direction;
    
private:
    AnalogIn refPin;
    };
#endif