Generates reference based on analog input
Dependents: locomotion_pid_action_refactor_EMG
Diff: refGen.h
- Revision:
- 2:35c05e7698f5
- Parent:
- 1:ac2d82dfd334
- Child:
- 3:43d9f8db93b7
--- a/refGen.h Mon Oct 16 09:40:22 2017 +0000 +++ b/refGen.h Fri Oct 20 12:23:03 2017 +0000 @@ -3,10 +3,13 @@ #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;