Hi
I have a programm written in processing that controlls servos via a 6 channel micro maestro.
Now I want the servos to move as exact as possible so I figured using the compact protocoll would be better than MiniSSC (higher resolution right ?).
While my servos move with the minissc method you see in my code the compact method doesn’t work at all. It also raises a Serial Error on my maestro and lights up the red light.
void minissc()
{
size(512, 512);
myPort = new Serial(this, "COM3", 115200); //max 115.2 kbps for Serial mode: Dual-port
myPort.write(0xFF);
myPort.write(0xFF);
myPort.write(0x00);
myPort.write(125); //x-servo
myPort.write(0xFF);
myPort.write(0x01);
myPort.write(125); //y-servo
}
void compact()
{
size(512, 512);
myPort = new Serial(this, "COM3", 115200); //max 115.2 kbps for Serial mode: Dual-port
myPort.write(binary(10000100));
myPort.write(binary(00000001));
myPort.write(binary(01110000));
myPort.write(binary(00101110));
}
Any ideas what I’m doing wrong ?