Initializes a new instance of the ServoConfiguration class

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 ServoConfiguration(
	ServoIdType servoId,
	bool enabled,
	bool inverted,
	byte speed
)
Visual Basic (Declaration)
Public Sub New ( _
	servoId As ServoIdType, _
	enabled As Boolean, _
	inverted As Boolean, _
	speed As Byte _
)
Visual C++
public:
ServoConfiguration(
	ServoIdType servoId, 
	bool enabled, 
	bool inverted, 
	unsigned char speed
)

Parameters

servoId
Type: Bespoke.Robotics.BrainStem..::.ServoIdType

[Missing <param name="servoId"/> documentation for "M:Bespoke.Robotics.BrainStem.ServoConfiguration.#ctor(Bespoke.Robotics.BrainStem.ServoIdType,System.Boolean,System.Boolean,System.Byte)"]

enabled
Type: System..::.Boolean
Enables or disables the servo.
inverted
Type: System..::.Boolean
Inverts all servo positioning calculations.
speed
Type: System..::.Byte
The speed may range from 0-15. A zero turns off the speed feature and the servo moves immediately from its previous position to any new position. A speed from 1 to 15, where 1 is the slowest, makes the servo ramp-up from the previous position and ramp-down to any new position.

Exceptions

ExceptionCondition
System..::.ArgumentOutOfRangeExceptionThrown if speed is out of range.

See Also