Метод | Описание | |
---|---|---|
GetBound ( int servo ) : |
Get bounds for the specified servo.
|
|
GetBounds ( ) : AForge.IntRange[] |
Get bounds of all servos.
|
|
GetPosition ( int servo ) : int |
Get current position of a single servo.
|
|
GetPositions ( ) : int[] |
Get current positions of all servos.
|
|
Servos ( AForge.Robotics.TeRK.Qwerk qwerk ) |
Initializes a new instance of the Qwerk.Servos class.
|
|
SetBound ( int servo, |
Set bounds for the specified servo. The method sets servo's physical bounds in which it may move. See documentation to Qwerk.Servos for clarification. |
|
SetBounds ( bool mask, |
Set bounds for specified servos. The method sets servos' physical bounds in which they may move. See documentation to Qwerk.Servos for clarification. |
|
SetPosition ( int servo, int position ) : int |
Set position of a single servo. The method sets position of single Qwerk's servo, which index is specified. It is preferred to use SetPositions for setting positions of multiple servos, which does it at once. |
|
SetPositions ( bool mask, int positions ) : int[] |
Set positions of specified servos. The mask and positions arrays specify which Qwerk's servo's state should be updated. If value of the mask array is set to |
|
StopServo ( int servo ) : int |
Stop specified servo.
|
|
StopServos ( ) : int[] |
Stop all servos.
|
|
StopServos ( bool mask ) : int[] |
Stop specified servos. The mask array specifies which Qwerk's servo need to be stopped. If value of the mask array is set to |
Метод | Описание | |
---|---|---|
CreateCommand ( ) : TeRK.ServoCommand |
public GetBound ( int servo ) : |
||
servo | int | Servo to get bounds for, [0, |
Результат |
public GetPosition ( int servo ) : int | ||
servo | int | Servo to get position for, [0, |
Результат | int |
public Servos ( AForge.Robotics.TeRK.Qwerk qwerk ) | ||
qwerk | AForge.Robotics.TeRK.Qwerk | Reference to |
public SetBound ( int servo, |
||
servo | int | Servo to set bounds for, [0, |
bound | Bounds to set for the specified servo. | |
Результат | void |
public SetBounds ( bool mask, |
||
mask | bool | Mask array specifying which servos need to be set. |
bounds | Array of servos' bounds. Each bound may be in [0, 255] range. | |
Результат | void |
public SetPosition ( int servo, int position ) : int | ||
servo | int | Servo to set position for, [0, |
position | int | Position to set for the specified servo, [0, 255]. |
Результат | int |
public SetPositions ( bool mask, int positions ) : int[] | ||
mask | bool | Mask array specifying which servos need to be set. |
positions | int | Array of servos' positions to set. Each position is in [0, 255] range. |
Результат | int[] |
public StopServo ( int servo ) : int | ||
servo | int | Servo to stop, [0, |
Результат | int |
public StopServos ( bool mask ) : int[] | ||
mask | bool | Mask array specifying which servos need to stop. |
Результат | int[] |