Example for using the Isle linear controller, moves right and left
- Author
- MIP
#include <PanTilt/IselLinearControl.hh>
using namespace BIAS;
using namespace std;
int main(int argc, char *argv[])
{
if (control.
Init(
"/dev/ttyUSB0") != 0) {
cout << "Initialising IGOR unit on USB port 0 failed!" << endl;
return -1;
}
cout << "I am talking to IGOR!" << endl;
if (control.
Reset() == 0) {
cout << "IGOR says everything is good." << endl;
}
cout << "IGOR says everything is good." << endl;
}
cout << "IGOR says everything is good." << endl;
}
cout << "IGOR says everything is good." << endl;
}
return 0;
}