Configure the general parameters 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 ConfigureServo( byte iicAddress, ServoConfiguration configuration ) |
Visual Basic (Declaration) |
---|
Public Shared Sub ConfigureServo ( _ iicAddress As Byte, _ configuration As ServoConfiguration _ ) |
Visual C++ |
---|
public: static void ConfigureServo( unsigned char iicAddress, ServoConfiguration^ configuration ) |
Parameters
- iicAddress
- Type: System..::.Byte
The address of the IIC module referenced by the packet.
- configuration
- Type: Bespoke.Robotics.BrainStem..::.ServoConfiguration
The new configuration of the servo.
Exceptions
Exception | Condition |
---|---|
System..::.ArgumentNullException | Thrown if configuration is null. |
Bespoke.Robotics.BrainStem.Exceptions..::.CommandException | Thrown if there's an error processing the command. |