Generates reference based on analog input
Dependents: locomotion_pid_action_refactor_EMG
refGen.h
- Committer:
- tvlogman
- Date:
- 2017-10-20
- Revision:
- 2:35c05e7698f5
- Parent:
- 1:ac2d82dfd334
- Child:
- 3:43d9f8db93b7
File content as of revision 2:35c05e7698f5:
#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 float maxAngle; bool r_direction; private: AnalogIn refPin; }; #endif