Generates reference based on analog input

Dependents:   locomotion_pid_action_refactor_EMG

refGen.h

Committer:
tvlogman
Date:
2017-10-16
Revision:
1:ac2d82dfd334
Parent:
0:5c67195a412d
Child:
2:35c05e7698f5

File content as of revision 1:ac2d82dfd334:

#ifndef REFGEN_H
#define REFGEN_H

#include "mbed.h"

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