Dear all,
I'm trying to come up with a PID or at least PI controller here. I think I've got my head around the structure, but I don't know how to handle negative values. I mean, I could add, say 255 to everything if these would be byte values in word-sized variables and see if it is more than zero or less in the end, but is there a better way?
Thank you for your time,
Edmunds
I'm trying to come up with a PID or at least PI controller here. I think I've got my head around the structure, but I don't know how to handle negative values. I mean, I could add, say 255 to everything if these would be byte values in word-sized variables and see if it is more than zero or less in the end, but is there a better way?
Thank you for your time,
Edmunds