Sets the relative position of a servo by adding or subtracting an offset to the servo's current position.

Namespace:  Bespoke.Robotics.BrainStem
Assembly:  Bespoke.Robotics.BrainStem (in Bespoke.Robotics.BrainStem.dll) Version: 2.0.0.0 (2.0.0.0)

Syntax

C#
public static void SetServoPositionRelative(
	byte iicAddress,
	ServoIdType servoId,
	byte relativeOffset,
	ServoRelativeDirectionType direction
)
Visual Basic (Declaration)
Public Shared Sub SetServoPositionRelative ( _
	iicAddress As Byte, _
	servoId As ServoIdType, _
	relativeOffset As Byte, _
	direction As ServoRelativeDirectionType _
)
Visual C++
public:
static void SetServoPositionRelative(
	unsigned char iicAddress, 
	ServoIdType servoId, 
	unsigned char relativeOffset, 
	ServoRelativeDirectionType direction
)

Parameters

iicAddress
Type: System..::.Byte
The address of the IIC module referenced by the packet.
servoId
Type: Bespoke.Robotics.BrainStem..::.ServoIdType
The ID of the servo to send the command to.
relativeOffset
Type: System..::.Byte
The relative offset to move of the servo (Range: 0-255).
direction
Type: Bespoke.Robotics.BrainStem..::.ServoRelativeDirectionType
The direction to move the servo.

Exceptions

ExceptionCondition
Bespoke.Robotics.BrainStem.Exceptions..::.CommandExceptionThrown if there's an error processing the command.

See Also