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

Reverted to the old pot conversion code that worked (may or may not be the issue currently)

This commit is contained in:
Adam Long 2014-04-02 16:42:21 -07:00
parent 396e18c1c4
commit 8303b79850

View File

@ -170,6 +170,14 @@ public:
} }
//}}} //}}}
//potToDegrees{{{ //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));
}
//}}} //}}}
//cvt{{{ //cvt{{{
int cvt(float input){ int cvt(float input){