Generates reference based on analog input
Dependents: locomotion_pid_action_refactor_EMG
refGen.h
- Committer:
- tvlogman
- Date:
- 2017-10-20
- Revision:
- 3:43d9f8db93b7
- Parent:
- 2:35c05e7698f5
- Child:
- 4:38af2aa14a3f
File content as of revision 3:43d9f8db93b7:
#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 getReferencePosition(); // Gets reference position on specified pin float maxAngle; bool r_direction; private: AnalogIn refPin; }; #endif