Question: In many engineering applications your sensor value or control command will need to be restricted between two values. In this case, make sure that an

In many engineering applications your sensor value or control command will need to be restricted between two values. In this case, make sure that an integer value passed to your method doesn't go above 99 or below -100.
Keeping a sensor or control value bounded like this is sometimes (often?) referred to as "thresholding" or "saturating" or "limiting".
Regardless of what you call it, it's a super common thing to do.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!