Generates reference based on analog input

Dependents:   locomotion_pid_action_refactor_EMG

Revision:
6:a8a82cee2705
Parent:
5:7186da6f562f
--- a/refGen.cpp	Sun Oct 22 08:06:37 2017 +0000
+++ b/refGen.cpp	Fri Oct 27 10:37:24 2017 +0000
@@ -6,8 +6,8 @@
 
     }
 
-float refGen :: getReference(){
-    float r;
+double refGen :: getReference(){
+    double r;
     if(r_direction == false){
         // Clockwise rotation yields positive reference
         r = maxAngle*refPin.read();