Functions which handle the remote control. More...
Modules | |
| Advanced informations | |
Enumerations | |
| enum | eRemoteControlSelectMask | 
| clusters bit masks for the requests of the remote control  More... | |
| enum | eRemoteControlGet | 
| clusters select values for reading data from the remote control  More... | |
Request Funktions | |
| void | remoteControl_request (eRemoteControlSelectMask bitmask, eRequestType request) | 
| Requests new data from the remote control.  More... | |
| eRemoteControlSelectMask | remoteControl_received (eRemoteControlSelectMask bitmask) | 
| Indicates if new data for the selected data blocks were received.  More... | |
| eRemoteControlSelectMask | remoteControl_changed (eRemoteControlSelectMask bitmask) | 
| Indicates if new data changed the selected data blocks.  More... | |
Access Funktions | |
| int16_t | remoteControl_get (eRemoteControlGet select) | 
| Returns the last stored version of the selected value.  More... | |
Functions which handle the remote control.
For sending and receiving data on the PC, there exists a ROS module. However, a simplified Python counterpart to the TUC-Bot example is given here - it can be used to test the connection to the robot: 
remoteControl.py and packedCom.py
example
| enum eRemoteControlGet | 
clusters select values for reading data from the remote control
clusters bit masks for the requests of the remote control
| Enumerator | |
|---|---|
| kRemoteControlSelectNone | bit mask (0x00): select no data block  | 
| kRemoteControlSelectTwist | bit mask (0x01): select twist message   | 
| kRemoteControlSelectMotor | bit mask (0x02): select motor commands   | 
| kRemoteControlSelectAll | bit mask (0x03): select all data blocks  | 
| eRemoteControlSelectMask remoteControl_changed | ( | eRemoteControlSelectMask | bitmask | ) | 
Indicates if new data changed the selected data blocks.
| bitmask | bit mask of the selected data blocks - see also eRemoteControlSelectMask  The parameter is used to only return the value of the masked changed-bits. All other values(bits) are set to 0.  | 
| int16_t remoteControl_get | ( | eRemoteControlGet | select | ) | 
Returns the last stored version of the selected value.
This function relies on the internal data blocks sRemoteControlTwist and sRemoteControlMotor - for new data use remoteControl_request().
| select | value of the selected data - see also eRemoteControlGet | 
| select | description | result | 
| kRemoteControlGetTwistLinear | linear speed in mm/s | 16-bit | 
| kRemoteControlGetTwistAngular | angular speed in degrees/s | 16-bit | 
| kRemoteControlGetMotorLeft  kRemoteControlGetMotorRight  | motor speed in percent | 8-bit | 
| eRemoteControlSelectMask remoteControl_received | ( | eRemoteControlSelectMask | bitmask | ) | 
Indicates if new data for the selected data blocks were received.
| bitmask | bit mask of the selected data blocks - see also eRemoteControlSelectMask  The parameter is used to only return the value of the masked received-bits. All other values(bits) are set to 0.  | 
| void remoteControl_request | ( | eRemoteControlSelectMask | bitmask, | 
| eRequestType | request | ||
| ) | 
Requests new data from the remote control.
For details on the request schema see The general request.
Involved data blocks are: 
sRemoteControlTwist and sRemoteControlMotor
| bitmask | bit mask of the selected data blocks - see also eRemoteControlSelectMask | 
| request | See also eRequestType | 
 1.8.17