2
0
mirror of https://github.com/team2059/Zaphod synced 2024-12-18 20:12:28 -05:00

Formatted potToDegrees

This commit is contained in:
Austen Adler 2014-04-03 22:00:28 -04:00
parent eef71313f0
commit aae3cecd1f

View File

@ -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{{{