#include <ServoSerial.h>
Public Member Functions | |
void | clear_packet () |
int | getDuration (int id, double *duration) |
int | getMaxTorque (int id, short *percentage) |
int | getPosition (int id, double *angle) |
int | getSpeed (int id, double *duration) |
int | getState (int id, unsigned char *data) |
int | getTemperature (int id, double *temperature) |
int | getTorque (int id, double *torque) |
int | getVoltage (int id, double *voltage) |
int | receivePacket (int id, int address, int length, unsigned char data[]) |
int | sendPacket (int header, int id, int flag, int address, int length, int count, void *data) |
ServoSerial (const char *devname) | |
int | setMaxTorque (int id, short percentage) |
int | setPosition (int id, double rad) |
int | setPosition (int id, double rad, double sec) |
int | setPositions (int len, int *id, double *rad) |
int | setPositions (int len, int *id, double *rad, double *sec) |
int | setReset (int id) |
int | setTorqueBreak (int id) |
int | setTorqueOff (int id) |
int | setTorqueOn (int id) |
~ServoSerial () | |
Public Attributes | |
int | fd |
Definition at line 23 of file ServoSerial.h.
ServoSerial::ServoSerial | ( | const char * | devname | ) | [inline] |
Definition at line 27 of file ServoSerial.h.
ServoSerial::~ServoSerial | ( | ) | [inline] |
Definition at line 70 of file ServoSerial.h.
void ServoSerial::clear_packet | ( | ) | [inline] |
Definition at line 389 of file ServoSerial.h.
int ServoSerial::getDuration | ( | int | id, |
double * | duration | ||
) | [inline] |
Definition at line 164 of file ServoSerial.h.
int ServoSerial::getMaxTorque | ( | int | id, |
short * | percentage | ||
) | [inline] |
Definition at line 192 of file ServoSerial.h.
int ServoSerial::getPosition | ( | int | id, |
double * | angle | ||
) | [inline] |
Definition at line 150 of file ServoSerial.h.
int ServoSerial::getSpeed | ( | int | id, |
double * | duration | ||
) | [inline] |
Definition at line 178 of file ServoSerial.h.
int ServoSerial::getState | ( | int | id, |
unsigned char * | data | ||
) | [inline] |
Definition at line 248 of file ServoSerial.h.
int ServoSerial::getTemperature | ( | int | id, |
double * | temperature | ||
) | [inline] |
Definition at line 220 of file ServoSerial.h.
int ServoSerial::getTorque | ( | int | id, |
double * | torque | ||
) | [inline] |
Definition at line 206 of file ServoSerial.h.
int ServoSerial::getVoltage | ( | int | id, |
double * | voltage | ||
) | [inline] |
Definition at line 234 of file ServoSerial.h.
int ServoSerial::receivePacket | ( | int | id, |
int | address, | ||
int | length, | ||
unsigned char | data[] | ||
) | [inline] |
Definition at line 260 of file ServoSerial.h.
int ServoSerial::sendPacket | ( | int | header, |
int | id, | ||
int | flag, | ||
int | address, | ||
int | length, | ||
int | count, | ||
void * | data | ||
) | [inline] |
Definition at line 316 of file ServoSerial.h.
int ServoSerial::setMaxTorque | ( | int | id, |
short | percentage | ||
) | [inline] |
Definition at line 125 of file ServoSerial.h.
int ServoSerial::setPosition | ( | int | id, |
double | rad | ||
) | [inline] |
Definition at line 78 of file ServoSerial.h.
int ServoSerial::setPosition | ( | int | id, |
double | rad, | ||
double | sec | ||
) | [inline] |
Definition at line 99 of file ServoSerial.h.
int ServoSerial::setPositions | ( | int | len, |
int * | id, | ||
double * | rad | ||
) | [inline] |
Definition at line 86 of file ServoSerial.h.
int ServoSerial::setPositions | ( | int | len, |
int * | id, | ||
double * | rad, | ||
double * | sec | ||
) | [inline] |
Definition at line 109 of file ServoSerial.h.
int ServoSerial::setReset | ( | int | id | ) | [inline] |
Definition at line 74 of file ServoSerial.h.
int ServoSerial::setTorqueBreak | ( | int | id | ) | [inline] |
Definition at line 144 of file ServoSerial.h.
int ServoSerial::setTorqueOff | ( | int | id | ) | [inline] |
Definition at line 138 of file ServoSerial.h.
int ServoSerial::setTorqueOn | ( | int | id | ) | [inline] |
Definition at line 132 of file ServoSerial.h.
Definition at line 25 of file ServoSerial.h.