Generates reference based on analog input

Dependents:   locomotion_pid_action_refactor_EMG

Revision:
0:5c67195a412d
Child:
1:ac2d82dfd334
--- /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