Thanks, that is one strong possibility. The other may be that I am just getting unlucky timing wise in my code and when the -1 is being sent, the atom pro may not be waiting the full time in the serin. When I get back to it, I may try to add more handshaking, maybe in the loop the bap outputs a prompt to the PC and the PC outputs something right after that. Or some such thing.
But currently trying to see why the HSERVO being generated by the TV brat does not appear to making the servos move the way I expect them to. There may be two servos reversed (an ankle with a hip maybe), but for example the step function is moving real slow through the functions and the angles and the like do not look at all right. Like it is trying to put a foot through the BAP board that is hung off the back of the brat and the max angle of any of the servos should only be 20 degrees, but it is trying to move a lot more, until it hits the limits of the brackets…
The requested moves (calls to movement) look like:
[code]Movement: -7.0000000000 20.0000000000 20.0000000000 7.0000000000 -20.0000000000 -20.0000000000 500.0000000000
-1166(46) 3331(133) 3331(133) -1166(46) 3331(133) 3331(133)
Movement: 7.0000000000 20.0000000000 20.0000000000 -7.0000000000 -20.0000000000 -20.0000000000 500.0000000000
1166(93) 3331(0) 3331(0) 1166(93) 3331(0) 3331(0)
Movement: 7.0000000000 -20.0000000000 -20.0000000000 -7.0000000000 20.0000000000 20.0000000000 500.0000000000
1166(0) -3331(266) -3331(266) 1166(0) -3331(266) -3331(266)
Movement: -7.0000000000 -20.0000000000 -20.0000000000 7.0000000000 20.0000000000 20.0000000000 500.0000000000
-1166(93) -3331(0) -3331(0) -1166(93) -3331(0) -3331(0)
[/code]
Note these tables are Right Ankle, Knee, Hip and then Left Ankle, Knee, hip and speed
The first line is the degrees. The second lines are the actual values passed to hservo with the number in parentheses the speeds. Each movement takes several seconds and appear to go through several gyrations. I will try to convert this output to a simple test program.
The real question is, is this issolated to my BRAT?