Server API, Pendant control emulation (ru)
- 9 years ago.
Server API, Pendant control emulation
Server API has a command to simplify Pendant control emulation. This command can be used for writing third-patry Pendant control device drivers.
Command | Description |
SetPendant |
Format: Parameter1 - Emulated Handwheel position. It's supposed the handwheel has reolution "100", position range can be (0...99) |
Example: | |
SetPendant 50;0x0300 <Axis=OFF, Mul=1, Wheel=50 - initial position> SetPendant 50;0x0301 <Axis=X, Mul=1, Wheel=50 - Turn ON X axis> SetPendant 55;0x0301 <Axis=X, Mul=1, Wheel=55 - Rotate wheel +5 "clicks", will move X +5*1.0=5.0 mm> SetPendant 55;0x0302 <Axis=Y, Mul=0.01, Wheel=55 - Switch to Y axis> SetPendant 65;0x0302 <Axis=Y, Mul=0.01, Wheel=65 - Rotate wheel +10 "clicks", will move Y +10*0.01=+0.1 mm> SetPendant 65;0x0302 <Axis=Z, Mul=0.1, Wheel=65 - Switch to Z axis> SetPendant 50;0x0302 <Axis=Z, Mul=0.1, Wheel=50 - Rotate wheel -15 "clicks", will move Z -15*0.1=-1.5 mm> |
{avsplayer videoid=6}