Behavior Control
Help Index

Relative Servos

How To Add This Control To Your Project

  1. Load the most recent release of EZ-Builder
  2. Press the Project tab from the top menu bar of EZ-Builder
  3. Press Add Control from the button ribbon bar of EZ-Builder
  4. Choose the Servo category tab
  5. Press the Relative Servos icon to add the control to your project
Similar to the regular servo controls (Horizontal and Vertical), this control will use multiple servos. However, the difference between this control and the others is substantial. This control allows you to specify a Master Servo. The slave servos will move into relative positions of the Master. All regular servo controls do allow multi servo, so this control isn't always necessary unless it's a special circumstance. The same logic that this control uses applies to all servo settings in ezbuilder.

This means if you move the master servo from any control, the slave servos will move to their relative positions. You can use scripting to Pause and Unpause this control - which will prevent the slave controls from moving.

If the ratio is 2, then the definition of ratio is applied to the slave servo from the master servo. 2 would be 2 times. That means multiplying something by 2 would be double the masters value. Here's an example...

If the master is in position 10 and the slave ratio is 2, the slave will be 20. If the slave min is 30, then the slave will be 30

Ratios or math multiplication can also be decimals using . (Point for decimal). That means you can have a ratio of 2.5, for example. 2.5 times 10 is 25.

Lastly, numbers can be negative values as well. This is done by putting a minus sign in front of the number. Such as -2.

So all slave servos move into a position relative to the master position * ratio. However, the slave position will never be lower or higher than its min/max, respectively.

Video

Related Tutorials