Updates error values

Dependents:   locomotion_pid_action_refactor_EMG

Revision:
2:d22c458a8a78
Parent:
1:9e2c9237d88b
Child:
3:71a7dd98fb2c
--- a/errorFetch.h	Fri Oct 20 16:29:30 2017 +0000
+++ b/errorFetch.h	Sun Oct 22 07:56:59 2017 +0000
@@ -7,14 +7,13 @@
 
 class errorFetch {
 public:
-    errorFetch(refGen, float, float); // Constructor sets up the pin to read the reference from
+    errorFetch(float, float); // Constructor sets up the pin to read the reference from
     volatile float e_pos;
     volatile float e_int;
     volatile float e_der;
     volatile float e_prev;
     
-    void fetchError(int counts); // Gets reference position on specified pin
-    refGen ref;
+    void fetchError(int counts, float ref); // Gets reference position on specified pin
     
 private:
     const float gearRatio;