Hey, as usual, sure I've mucked up something simple...
abridged version:
abridged version:
- int[] CurrentArray = new int[6];
- port.write (CurrentArray[0]);port.write (CurrentArray[1]);port.write (CurrentArray[2]);port.write (CurrentArray[3]);port.write (CurrentArray[4]);port.write (CurrentArray[5]); //Finally send the current array to the arm
if I omit Array 0, the other 5 channels work fine... but when I send all 6, it jitters like crazy...
(if Array 0 is made identical to Array 1, it still fails, even though A1 worked fine without A0 enabled)
The Related Arduino code is literally as simple as possible, so I don't think it's there :(
Any thoughts
(productive thoughts?) :p
(if Array 0 is made identical to Array 1, it still fails, even though A1 worked fine without A0 enabled)
The Related Arduino code is literally as simple as possible, so I don't think it's there :(
- while (Serial.available()<5) {} // Wait 'till there are 6 Bytes waiting
for(int n=0; n<5; n++) // is 5 or 6?
CurrentArray[n] = Serial.read(); // Then: Get them.
gripper.write(CurrentArray[5]); wrist.write(CurrentArray[4]);wristRotate.write(CurrentArray[3]);
elbow.write(CurrentArray[2]);shoulder.write(CurrentArray[1]);shoulderRotate.write(CurrentArray[0]);
Any thoughts
(productive thoughts?) :p
1