Generates reference based on analog input

Dependents:   locomotion_pid_action_refactor_EMG

refGen.h

Committer:
tvlogman
Date:
2017-10-27
Revision:
6:a8a82cee2705
Parent:
5:7186da6f562f

File content as of revision 6:a8a82cee2705:

#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
    double getReference(); // Gets reference position on specified pin
    float maxAngle;
    bool r_direction;
    
private:
    AnalogIn refPin;
    };
#endif