get_position: Get the position of a servo instance.

Description Usage Arguments Value Methods (by class) Examples

Description

Gets the position of a given servo instance.

Usage

1
2
3
4
get_position(x)

## S4 method for signature 'Servo'
get_position(x)

Arguments

x

A Servo instance.

Value

A numeric of length one with the actual position of the servo.

Methods (by class)

Examples

1
2
3
4
5
6
7
## Not run: 
# Get a servo instance with initial position 0.9
servo <- get_servo(14, 0.9)
# Read the position of the servo (should be 0.9).
get_position(servo)

## End(Not run)

jcrodriguez1989/r2servo documentation built on Sept. 6, 2020, 12:07 a.m.