Generates reference based on analog input
Dependents: locomotion_pid_action_refactor_EMG
Diff: refGen.h
- Revision:
- 0:5c67195a412d
- Child:
- 1:ac2d82dfd334
diff -r 000000000000 -r 5c67195a412d refGen.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/refGen.h Mon Oct 16 08:44:22 2017 +0000 @@ -0,0 +1,15 @@ +#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 \ No newline at end of file