Documentation

Toggle Menu

Vertical Slider

This tile is good for getting values that change linearly.

Settings

Tag

This is a unique String ID assigned to this tile and is used (by you) to identify what tile sent what data by your script.
Note that this is case sensitive, and cannot contain any white space.

Size

This modifies the size of the button as it appears on your screen. Its units of measurement is tiles. Since each tile that can have its size modified is aware of its surroundings, the numeric steppers used to adjust the tile size will stop you from overlapping with other tiles or going over the edge of the screen.

Send On

This modifies when the data is sent. Value Changed will send the current value as the user swipes along the slider and the current value does not equal the previous value. Slider Released will only send the current value when the user takes their finger off the slider tile.

Stepper Settings

This sets how the slider responds by setting a maximum, a minimum, and a step value for the stepper. Step value is the amount the value of the tile increments or decrements by when the user slides along the slider.
This may cause a snapping effect, where the slider knob jumps to a part in the slider that corresponds to the step value.
Also note that each field does not have to be an integer.

Input

You can set the position of the slider by sending a number within the range set in the tile's settings.

  • IntegerInteger within range set in tile's settings → Set the slider value.

  • FloatFloat within range set in tile's settings → Set the slider value.

Usage Demo

This is a simple demo where the script set the value of the slider with the tag speedSlider to 0 when it first connects, as a default value.

                            def forceServerDeviceConnectedWithName(self, deviceName):
                                self.force.sendMessage(deviceName, "speedSlider", 0)
                            

Output

The following is what data is sent from this tile to the server/your script. It is in the format:
Action → Data TypeValue

  • Slider Value Changed → IntegerAn Integer between set range. OR

  • Slider Value Changed → FloatA Float between set range.

  • Slider Released → IntegerAn Integer between set range. OR

  • Slider Released → FloatA Float between set range.

Note that a tile's tag is always sent to the server for identification purposes.

Usage Demo

This is a simple demo where the script will set the speed of the motors to the data sent by the slider.

                            def forceServerDidReceiveData(self, deviceName, senderTag, data):
                                if senderTag == "speedSlider":
                                    self.setMotorSpeed(data)