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:
parent
396e18c1c4
commit
8303b79850
@ -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){
|
||||||
|
Loading…
Reference in New Issue
Block a user