by SoBot » Wed Mar 31, 2010 3:18 pm
by SoBot
Wed Mar 31, 2010 3:18 pm
I am running Xubuntu on my roboard with Eclipce installed for C/C++ development. I am able to compile and run the following code:
#include <roboard>
#include <iostream>
using namespace std;
int main() {
cout << "Roboard test program" << endl;
if (rcservo_Initialize(RCSERVO_USECHANNEL0))
{
rcservo_Outp(17, 1);
cout << "setting pin high"<< endl;
rcservo_Close();
} else cout << roboio_GetErrMsg();
return 0;
}
but for some reason the IO library won't initialize. This is the output:
Roboard test program
I/O library fails to initialize
What can be the reason for this?
I am running Xubuntu on my roboard with Eclipce installed for C/C++ development. I am able to compile and run the following code:
#include <roboard>
#include <iostream>
using namespace std;
int main() {
cout << "Roboard test program" << endl;
if (rcservo_Initialize(RCSERVO_USECHANNEL0))
{
rcservo_Outp(17, 1);
cout << "setting pin high"<< endl;
rcservo_Close();
} else cout << roboio_GetErrMsg();
return 0;
}
but for some reason the IO library won't initialize. This is the output:
Roboard test program
I/O library fails to initialize
What can be the reason for this?