92 typedef enum { ZOOM = 1, FOCUS = 2, IRIS = 3 } vpServoType;
101 typedef enum { AUTO = 1, CONTROLLED = 2, RELEASED = 3 } vpControllerType;
107 void open(
const char *port =
"/dev/ttyS0");
111 void setController(vpControllerType controller)
const;
112 void setAutoIris(
bool enable)
const;
113 void setPosition(vpServoType servo,
unsigned int position)
const;
114 bool getPosition(vpServoType servo,
unsigned int &position)
const;
117 void enablePrompt(
bool active)
const;
123 void wait(vpServoType servo)
const;
125 bool read(
char *c,
long timeout_s)
const;
126 void write(
const char *s)
const;
128 bool clean(
const char *in,
char *out)
const;