Generates reference based on analog input
Dependents: locomotion_pid_action_refactor_EMG
refGen.h
- Committer:
- tvlogman
- Date:
- 2017-10-16
- Revision:
- 0:5c67195a412d
- Child:
- 1:ac2d82dfd334
File content as of revision 0:5c67195a412d:
#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