Configure the starting (zero) position and resolution (range) 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 void ConfigureServoMotion( byte iicAddress, ServoIdType servoId, byte positionZero, byte positionResolution ) |
Visual Basic (Declaration) |
---|
Public Shared Sub ConfigureServoMotion ( _ iicAddress As Byte, _ servoId As ServoIdType, _ positionZero As Byte, _ positionResolution As Byte _ ) |
Visual C++ |
---|
public: static void ConfigureServoMotion( unsigned char iicAddress, ServoIdType servoId, unsigned char positionZero, unsigned char positionResolution ) |
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 configure.
- positionZero
- Type: System..::.Byte
Position zero for the servo (Range: 0-70).
- positionResolution
- Type: System..::.Byte
Positioning resolution (range of travel) for the servo (Range: 1-70)
Exceptions
Exception | Condition |
---|---|
System..::.ArgumentOutOfRangeException | Thrown if positionZero or positionResolution are out of range. |
Bespoke.Robotics.BrainStem.Exceptions..::.CommandException | Thrown if there's an error processing the command. |