YARP
Yet Another Robot Platform
SerialServoBoard.h File Reference
#include <yarp/dev/ControlBoardInterfaces.h>
#include <yarp/dev/Drivers.h>
#include <yarp/dev/ISerialDevice.h>
#include <yarp/dev/PolyDriver.h>
#include <cstdio>
#include <cstdlib>
#include <cstring>
+ Include dependency graph for SerialServoBoard.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  SerialServoBoard
 SerialServoBoard: Documentation to be added More...
 

Macros

#define round(x)   ((x) >= 0 ? (int)((x) + 0.5) : (int)((x)-0.5))
 
#define FABS(x)   (x >= 0 ? x : -x)
 
#define SSC32   1
 
#define MINISSC   2
 
#define PONTECHSV203X   3
 
#define MONDOTRONICSMI   4
 
#define POLOLUUSB16   6
 
#define PICOPIC   7
 

Functions

bool movessc32 (int j, double ref, double *positions, double *speeds, ISerialDevice *serial)
 
bool moveminissc (int j, double ref, double *positions, double *speeds, ISerialDevice *serial)
 
bool movepontech (int j, double ref, double *positions, double *speeds, ISerialDevice *serial)
 
bool movemondotronic (int j, double ref, double *positions, double *speeds, ISerialDevice *serial)
 
bool movepololu (int j, double ref, double *positions, double *speeds, ISerialDevice *serial)
 
bool movepicopic (int j, double ref, double *positions, double *speeds, ISerialDevice *serial)
 

Macro Definition Documentation

◆ FABS

#define FABS (   x)    (x >= 0 ? x : -x)

Definition at line 20 of file SerialServoBoard.h.

◆ MINISSC

#define MINISSC   2

Definition at line 23 of file SerialServoBoard.h.

◆ MONDOTRONICSMI

#define MONDOTRONICSMI   4

Definition at line 25 of file SerialServoBoard.h.

◆ PICOPIC

#define PICOPIC   7

Definition at line 27 of file SerialServoBoard.h.

◆ POLOLUUSB16

#define POLOLUUSB16   6

Definition at line 26 of file SerialServoBoard.h.

◆ PONTECHSV203X

#define PONTECHSV203X   3

Definition at line 24 of file SerialServoBoard.h.

◆ round

#define round (   x)    ((x) >= 0 ? (int)((x) + 0.5) : (int)((x)-0.5))

Definition at line 19 of file SerialServoBoard.h.

◆ SSC32

#define SSC32   1

Definition at line 22 of file SerialServoBoard.h.

Function Documentation

◆ moveminissc()

bool moveminissc ( int  j,
double  ref,
double *  positions,
double *  speeds,
ISerialDevice serial 
)

Definition at line 318 of file SerialServoBoard.cpp.

◆ movemondotronic()

bool movemondotronic ( int  j,
double  ref,
double *  positions,
double *  speeds,
ISerialDevice serial 
)

Definition at line 351 of file SerialServoBoard.cpp.

◆ movepicopic()

bool movepicopic ( int  j,
double  ref,
double *  positions,
double *  speeds,
ISerialDevice serial 
)

Definition at line 389 of file SerialServoBoard.cpp.

◆ movepololu()

bool movepololu ( int  j,
double  ref,
double *  positions,
double *  speeds,
ISerialDevice serial 
)

Definition at line 368 of file SerialServoBoard.cpp.

◆ movepontech()

bool movepontech ( int  j,
double  ref,
double *  positions,
double *  speeds,
ISerialDevice serial 
)

Definition at line 335 of file SerialServoBoard.cpp.

◆ movessc32()

bool movessc32 ( int  j,
double  ref,
double *  positions,
double *  speeds,
ISerialDevice serial 
)

Definition at line 294 of file SerialServoBoard.cpp.