I hope you can provide some tips on my problem. My debugger gets stuck on line 27 when I try to run the example from: pololu.com/docs/0J40/5.h.1
The weird part is I had some initial runs where it worked just fine. I split the code up in several classes and when I wanted to test it, it didn’t do. So I tried to go back to the example which I couldn’t get running any more.
Context:
Ubuntu 12.04
Maestro Control Center does just fine
/dev/ttyACM0 and /dev/ttyACM1 are there
standard servos are connected on channels 0 and 1
just swapped comments on lines 53 and 54
tried some reboots/reconnects without success
The debugger passes the write command without problems and completely freezes at the read command. No errors, seg faults or return values.
The main question: Is this a known issue or does anybody have an idea what might cause that kind of behavior?
I am sorry you are having problems running the Cross-platform C example on your Maestro. What serial mode do you have the Maestro set to? Could you post your settings file? To save a settings file you can open the Maestro Control Center and then select “Save settings file” under the File menu.
sorry for the late reply. This is the configuration that runs fine - any ideas?
I also tried running the example code once more resulting in the same error.
The Micro Maestro I’ve got at hand shows the same behavior.
The Maestro’s Cross-platform C example specifies that the Maestro’s serial mode must be set to “USB Dual Port” to use it. Could you try changing the serial mode your Maestros are in, and see if that solves the problem?