What is a good algorithm in NXC for control saturation? I want to make sure my motors don't turn past a certain angle, or they will break the model. I could do something like:
if (angle > 45) {angle = 45;)
But that would be a hard limit. I'm looking for a smoother limit.
nxt
somehow.