34 bool queryFirmwareVersion(
std::string &out_firmwareVersion );
41 bool getCurrentAngle(
double &angle,
const uint8_t servo = 0 );
49 bool setAngle(
double angle,
const uint8_t servo = 0,
bool fast =
false );
57 bool setAngleAndSpeed(
double angle,
const uint8_t servo,
const uint8_t speed );
65 bool setAngleWithFilter(
double angle,
const uint8_t servo = 0,
bool fast =
false );
71 bool disableServo(
const uint8_t servo = 0 );
77 bool enableServo(
const uint8_t servo = 0 );
81 bool center(
const uint8_t servo = 0 );
101 void setOffsets(
float offset0,
float offset1,
float offset2);
120 unsigned int angle2RegValue(
const double angle );
131 bool checkConnectionAndConnect();
unsigned __int16 uint16_t
unsigned int m_NumPrevAngles
Number of previous angles to store for averaging.
void setNumberOfPreviousAngles(const unsigned int number)
Gets the truncate factor of the turn.
A USB-interface for a custom "robotic neck" designed at MAPIR lab.
std::vector< float > m_offsets
The offset used for each servo.
GLsizei const GLchar ** string
unsigned int getNumberOfPreviousAngles()
Gets the truncate factor of the turn.
double getTruncateFactor()
Gets the truncate factor of the turn.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
void setTruncateFactor(const double factor)
Gets the truncate factor of the turn.
std::string m_usbSerialNumber
A copy of the device serial number (to open the USB FTDI chip).
double m_TruncateFactor
The range of turn of the servo will be truncated to "+-m_truncate_factor*(pi/2)". ...
GLsizei const GLfloat * value
double m_MaxValue
The value set in the ICR register within the ATMEGA16 controller.
std::deque< double > m_PrevAngles
A vector containing the last N angles which where passed to the servo (for averaging) ...
A definition of a CStream actually representing a USB connection to a FTDI chip.