HerkuleXLib
1.2
Arduino library to drive HerkuleX DRS-0101 and DRS-0201
|
Class to manage the communication. More...
#include <HkxCommunication.h>
Public Member Functions | |
HkxCommunication (hkxBaudrate baudrate, HardwareSerial &serialServos, HkxPrint &print) | |
Constructor. More... | |
Class to manage the communication.
This class manages the communications with the servos. It manages some possible communications problems and proposes simple functions to send requests to the servos.
HkxCommunication::HkxCommunication | ( | hkxBaudrate | baudrate, |
HardwareSerial & | serialServos, | ||
HkxPrint & | |||
) |
Constructor.
The constructor of HkxCommunication.
[in] | baudrate | : Value of the baud rate to communicate with the servos. The same value shall be setup in the servos. See below the available values |
--------------------------------------------------------------------------------------------------------- | hkxBaudrate | HKX_57600 | HKX_115200 | HKX_200000 | HKX_250000 | HKX_400000 | HKX_500000 | HKX_666666 | --------------------------------------------------------------------------------------------------------- | baud rate | 57600 | 115200 | 200000 | 250000 | 400000 | 500000 | 666666 | ---------------------------------------------------------------------------------------------------------
[in] | serialServos | : Serial port to use to communicate with the servos. It could be Serial , Serial1 , Serial2 or Serial3 depending on the Arduino board and the wiring. |
[in] | : Communication to print messages |
Example: