Thumbnail

Relative Servos

+ How To Add This Control To Your Project (Click to Expand)
  1. Load the most recent release of ARC.
  2. Press the Project tab from the top menu bar in ARC.
  3. Press Add Control from the button ribbon bar in ARC.
  4. Choose the Servo category tab.
  5. Press the Relative Servos icon to add the control to your project.
This skill is similar to the Horizontal and Vertical servo skills. However, the difference between this skill and the others is that it allows you to specify a Master Servo. The slave servos will move into relative positions of the Master. This means if you move the master servo from ANY skill, the slave servos will move to their relative positions. You can use scripting or the checkbox to Pause and Unpause this skill whenever you like, which will prevent the slave servos from moving.

If the ratio of 2 is used in the Relative Servos skill settings, the relative servo would move double the master's value. Here's an example:

If the master is in position 10 and the slave ratio is 2, the slave will move to position 20.

Ratios can also be in decimal format. That means you can have a ratio of 2.5. For example, 2.5 times 10 is 25. If the Master was in position 10 the slave would be in position 25.

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

*Note: The slave position will never be lower or higher than its min/max limits.

Main Window



1. Servo Slider
Press and hold the left mouse button down in this area to adjust the servo slider value. The servo slider value will be displayed here and it will be between the minimum and maximum servo positions set up in the skill settings.

2. Pause Checkbox
This checkbox will enable/disable the operation of the relative servos.

Settings



1. Title Field
This field contains the title of the skill. You can change it if you'd like. *Note: Changing the title will also change the title in the controlCommand() associated with this skill.

2. Master Servo Settings
This section allows you to set up the Master servo movement parameters such as servo port, board index, servo configuration, max/min degree limitations, and inverted direction.

3. Relative Servos Settings
This section allows you to set up the Relative servos movement parameters such as servo port, board index, servo configuration, max/min degree limitations, and inverted direction.

4. Add Servo Button
This button attaches a new relative servo to the Master servo. Once added, it appears in the relative servos settings section.

How to use Relative Servos


1) Add the Relative Servos skill´╗┐ to your ARC project (Project -> Add Skill -> Servo -> Relative Servos).´╗┐

2) In the skill settings set up your Master servo and add a relative servo or two. Adjust the relative servo settings as well.

3) In the Main Window adjust the Master servo position and watch as the relative servos move with it.

Video