Hello,
I am new to this forum,
i had this crazy idea of making a robot from my old nokia n810 pda.
It has maemo os2008 linux loaded.
I activated host mode on USB, loaded cdc-acm.ko module,
then i am able to succesfully connect to maestro 6,
yellow light on maestro turns on, and orange keeps blinking,
/dev/ttyACM0 and /dev/ttyACM1 appear.
But im having problems with servo movement.
In my desktop environment (windows 7) with your control application i can do it just fine.
I tried to code my own control samples in C/C++, for example this simple test:
(servo is attached on target id 1, i am communicating on ttyACM0 but i also tried ttyACM1, im using mini ssc protocol)
#include <iostream>
#include <fstream>
using namespace std;
int main(void)
{
fstream micro6;
micro6.open("/dev/ttyACM0",ios::out);
if(micro6.fail())
{
cout << "Cant open port." << endl;
return 1;
}
cout << "Port succesfully opened." << endl;
unsigned char set_target[3]= {255,1,255};
for(unsigned int i=0;i<3;i++)
{
cout << " " << (int)set_target[i];
micro6.put(set_target[i]);
}
cout << endl;
micro6.flush();
getchar();
micro6.close();
return 0;
}
But it does nothing, and i cant find a reason why. I would really appreciate any help.