Take your 0-255 unit
Multiply by 1412 into a Dummy Variable
Then use DIV32 to divide by 10
example...
255 x 1412 / 10 = 36006
If you multiplied by 14118 and divided by 100 you would be more accurate yealding...
255 x 14118 / 100 = 36000
Either results gives you two decimnal places (remember we're playing integers here, so the two decimal places are the rightmost two characters of the result.
That won't be minutes though... it'll be DECIMAL degrees... you'll have to do some more math to calculate that into minutes.
You have a POT that rotates exactly 360 degrees?
Bookmarks