Methods
(static) messageStepMotorChangeDirection(id, direction) → {Uint8Array}
- Description:
- 4.13.12 Motor Change direction (Not Documented) Create Encoded Packet for the command CMD_STEP_MOTOR_CHANGE_DIRECTION
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
id |
number | ; // 1 : Rotation axis 2: Pitch axis |
direction |
boolean | ; //0: left/down 1: right/up |
Returns:
- Type
- Uint8Array
(static) messageStepMotorChangeSpeed(id, speed;) → {Uint8Array}
- Description:
- 4.13.11 Motor Change Speed (Not Documented) Create Encoded Packet for the command CMD_STEP_MOTOR_CHANGE_SPEED
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
id |
number | ; // 1 : Rotation axis 2: Pitch axis |
speed; |
number | //2 : 5 gears: 0.1, 1, 5, 10, 30 degrees/s, supports maximum speed of 32 degrees/s |
Returns:
- Type
- Uint8Array
(static) messageStepMotorGetPosition(id) → {Uint8Array}
- Description:
- 4.13.14 Motor Get Position (Not Documented) Create Encoded Packet for the command CMD_STEP_MOTOR_GET_POSITION
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
id |
number | ; // 1 : Rotation axis 2: Pitch axis |
Returns:
- Type
- Uint8Array
(static) messageStepMotorMotion(id, speed, direction, speed_ramping, resolution_level) → {Uint8Array}
- Description:
- 4.13.3 Motor motion Create Encoded Packet for the command CMD_STEP_MOTOR_RUN
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
id |
number | ; //1 : Rotation axis 2: Pitch axis |
speed |
number | ; //5 gears: 0.1, 1, 5, 10, 30 degrees/s, supports maximum speed of 32 degrees/s |
direction |
boolean | ; //0: left/down 1: right/up |
speed_ramping |
number | ; //Acceleration and deceleration: 0-1000, 100 gears, a total of 11 gears |
resolution_level |
number | ; //Subdivision: 5:32 subdivision // Subdivision: // 0:256 Subdivision // 1:128 Subdivision // 2:64 Subdivision // 3:32 Subdivision // 4:16 Subdivision // 5:8 Subdivision // 6:4 Subdivision // 7:2 Subdivision // 8:1 Subdivision |
Returns:
- Type
- Uint8Array
(static) messageStepMotorMotionTo(id, end_position, speed, speed_ramping, resolution_level) → {Uint8Array}
- Description:
- 4.13.9 Motor Run To (Not Documented) Create Encoded Packet for the command CMD_STEP_MOTOR_RUN_TO
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
id |
number | ; // 1 : Rotation axis 2: Pitch axis |
end_position |
number | ; |
speed |
number | ; //5 gears: 0.1, 1, 5, 10, 30 degrees/s, supports maximum speed of 32 degrees/s |
speed_ramping |
number | ; //Acceleration and deceleration: 0-1000, 100 gears, a total of 11 gears |
resolution_level |
number | ; //Subdivision: 5:32 subdivision |
Returns:
- Type
- Uint8Array
(static) messageStepMotorReset(id, direction;) → {Uint8Array}
- Description:
- 4.13.10 Motor Reset (Not Documented) Create Encoded Packet for the command CMD_STEP_MOTOR_RESET
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
id |
number | ; // 1 : Rotation axis 2: Pitch axis |
direction; |
boolean | //2 : 0: left/down 1: right/up |
Returns:
- Type
- Uint8Array
(static) messageStepMotorServiceDualCameraLinkage(x, y) → {Uint8Array}
- Description:
- 4.13.8 Dual camera linkage Create Encoded Packet for the command CMD_STEP_MOTOR_SERVICE_DUAL_CAMERA_LINKAGE
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
x |
number | ; |
y |
number | ; |
Returns:
- Type
- Uint8Array
(static) messageStepMotorServiceJoystick(vector_angle, vector_length, speed) → {Uint8Array}
- Description:
- 4.13.5 Joystick Create Encoded Packet for the command CMD_STEP_MOTOR_SERVICE_JOYSTICK
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
vector_angle |
number | ; //The angle of the direction vector, indicating the direction of motion of the field of view, 0-360 degrees, 0 degrees starting from the positive x-axis and increasing counterclockwise |
vector_length |
number | ; //The length of the direction vector represents the scaling factor of the speed, 0-1, and the speed is finely adjusted according to the range of the joystick drag |
speed |
number | ; //speed along the direction vector, 0.1 �/s-30 �/s |
Returns:
- Type
- Uint8Array
(static) messageStepMotorServiceJoystickFixedAngle(vector_angle, vector_length, speed) → {Uint8Array}
- Description:
- 4.13.6 Short press the arrow keys with the joystick Create Encoded Packet for the command CMD_STEP_MOTOR_SERVICE_JOYSTICK_FIXED_ANGLE
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
vector_angle |
number | ; //The angle of the direction vector, indicating the direction of motion of the field of view, 0-360 degrees, 0 degrees starting from the positive x-axis and increasing counterclockwise |
vector_length |
number | ; //The length of the direction vector represents the scaling factor of the speed, 0-1, and the speed is finely adjusted according to the range of the joystick drag |
speed |
number | ; //speed along the direction vector, 0.1 �/s-30 �/s |
Returns:
- Type
- Uint8Array
(static) messageStepMotorServiceJoystickStop() → {Uint8Array}
- Description:
- 4.13.7 Stop joystick Create Encoded Packet for the command CMD_STEP_MOTOR_SERVICE_JOYSTICK_STOP
- Source:
Returns:
- Type
- Uint8Array
(static) messageStepMotorStop(id) → {Uint8Array}
- Description:
- Create Encoded Packet for the command CMD_STEP_MOTOR_STOP 4.13.4 Motor stop
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
id |
number | ; //0: Rotation axis 1: Pitch axis |
Returns:
- Type
- Uint8Array