|
Re: Basic Math Help
what type is current_height?
18 thousand could be correct, maybe the analog input value is higher than what you think it is.
Try printing the analog value and the value*30, and compare them.
Also, I strongly recommend not using floats, they are very slow and memory intensive.
|