DAVID4 SDK
1.8.7
|
Implements interface functions of 'ITurntable'. More...
#include <TurntableJsonRpc.h>
Public Member Functions | |
TurntableJsonRpc (ClientJsonRpc *client) | |
Constructor. More... | |
virtual void | Setup (bool enable) |
Set up the turntable (connect/disconnect). More... | |
virtual void | Rotate (double degrees) |
Rotate the turntable. More... | |
![]() | |
virtual | ~ITurntable () |
Destructor. | |
Implements interface functions of 'ITurntable'.
All calls are delegated to a JSON-RPC 2.0 client.
Definition at line 20 of file TurntableJsonRpc.h.
david::TurntableJsonRpc::TurntableJsonRpc | ( | ClientJsonRpc * | client) |
Constructor.
[in,out] | client | Valid pointer to client implementation. |
|
virtual |
Rotate the turntable.
The turntable rotates counterclockwise ('degrees' is postive) or clockwise ('degrees' is negative).
[in] | degrees | Amount of rotation in degrees. |
david::Error_DeviceNotAvailable | (david::FunctionException) Rotation of turntable failed. Turntable not available? |
Implements david::ITurntable.
|
virtual |
Set up the turntable (connect/disconnect).
[in] | enable | True for connect, false for disconnect. |
david::Error_DeviceNotAvailable | (david::FunctionException) Connection to turntable failed. Turntable not available? |
Implements david::ITurntable.