From aae3cecd1f790229e1901579688d8af813ef231b Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Thu, 3 Apr 2014 22:00:28 -0400 Subject: [PATCH] Formatted potToDegrees --- MyRobot.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/MyRobot.cpp b/MyRobot.cpp index 02af8f1..2a5839f 100644 --- a/MyRobot.cpp +++ b/MyRobot.cpp @@ -171,12 +171,12 @@ public: //}}} //potToDegrees{{{ float potToDegrees(float a) { - float max = -.0003948; - float min = 5.0245547; - float b = a - max; - min = min - max; // ~5.0027 - max = max - max; //=0 - return 300 - ((b + max) * (300 / min)); + float max=-.0003948; + float min=5.0245547; + float b=a-max; + min=min-max; // ~5.0027 + max=max-max; //=0 + return 300-((b+max)*(300/min)); } //}}} //cvt{{{