32 #include <PanTilt/IselLinearControl.hh>
37 int main(
int argc,
char *argv[])
41 if (control.
Init(
"/dev/ttyUSB0") != 0) {
42 cout <<
"Initialising IGOR unit on USB port 0 failed!" << endl;
46 cout <<
"I am talking to IGOR!" << endl;
48 if (control.
Reset() == 0) {
49 cout <<
"IGOR says everything is good." << endl;
53 cout <<
"IGOR says everything is good." << endl;
56 cout <<
"IGOR says everything is good." << endl;
59 cout <<
"IGOR says everything is good." << endl;
int MoveLeft(float millimeters)
int SetPosition(int pos, bool bWaitComplete=true)
int MoveRight(float millimeters)
This class controls the Isel Linear Unit.
void Close()
closes the comport stream connected to ptu
int Init(int nCOMportNumber)
opens the serial port and initialises unit
int Reset()
Start Reference Tour.