Re: Using floating point
Henrik, I just had a thought. How is the fact that I changed my temperature value to a long going to affect your PID routine? Specifically, pid_error and my set point are words, the actual temperature is a long.
I've never used longs before, can you mix them with words? And I guess that I will have to use C_TEMP / 10 to get the integer portion in the equation: pid_error = setpoint - temperature?
"I have noticed that even those who assert that everything is predestined and that
we can change nothing about it still look both ways before they cross the street"
-Stephen Hawking
Bookmarks