Retrieve the absolute position of a servo.
Namespace:
Bespoke.Robotics.BrainStemAssembly: Bespoke.Robotics.BrainStem (in Bespoke.Robotics.BrainStem.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
C# |
---|
public static byte GetServoPosition( byte iicAddress, ServoIdType servoId ) |
Visual Basic (Declaration) |
---|
Public Shared Function GetServoPosition ( _ iicAddress As Byte, _ servoId As ServoIdType _ ) As Byte |
Visual C++ |
---|
public: static unsigned char GetServoPosition( unsigned char iicAddress, ServoIdType servoId ) |
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.
Return Value
The absolute position of the servo (Range: 0-255).Exceptions
Exception | Condition |
---|---|
Bespoke.Robotics.BrainStem.Exceptions..::.CommandException | Thrown if there's an error processing the command. |