#include <ArRobotPacketSender.h>
Public Methods | |
ArRobotPacketSender (unsigned char sync1=0xfa, unsigned char sync2=0xfb) | |
Constructor without an already assigned device connection. More... | |
ArRobotPacketSender (ArDeviceConnection *deviceConnection, unsigned char sync1=0xfa, unsigned char sync2=0xfb) | |
Constructor with assignment of a device connection. More... | |
virtual | ~ArRobotPacketSender (void) |
Destructor. | |
bool | com (unsigned char command) |
Sends a command to the robot with no arguments. More... | |
bool | comInt (unsigned char command, short int argument) |
Sends a command to the robot with an int for argument. More... | |
bool | com2Bytes (unsigned char command, char high, char low) |
Sends a command to the robot with two bytes for argument. More... | |
bool | comStr (unsigned char command, const char *argument) |
Sends a command to the robot with a string for argument. More... | |
bool | comStrN (unsigned char command, const char *str, int size) |
Sends a command to the robot with a size bytes of str as argument. More... | |
void | setDeviceConnection (ArDeviceConnection *deviceConnection) |
Sets the device this instance sends commands to. | |
ArDeviceConnection * | getDeviceConnection (void) |
Gets the device this instance sends commands to. |
|
Constructor without an already assigned device connection.
|
|
Constructor with assignment of a device connection.
|
|
Sends a command to the robot with no arguments.
|
|
Sends a command to the robot with two bytes for argument.
|
|
Sends a command to the robot with an int for argument.
|
|
Sends a command to the robot with a string for argument.
|
|
Sends a command to the robot with a size bytes of str as argument.
|