Jump to content
I2Cdevlib Forums

nixt

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by nixt

  1. The processing code also aligns itself on a 14-byte boundary before reading in the data. Make sure you have edited that portion accordingly. Alternatively you could completely remove the portion so that it starts reading data as soon it encounters the '$' symbol.
  2. I fixed it by completely removing this part of the code : if (aligned < 4) { // make sure we are properly aligned on a 14-byte packet if (serialCount == 0) { if (ch == '$') aligned++; else aligned = 0; } else if (serialCount == 1) { if (ch == 2) aligned++; else aligned = 0; } else if (serialCount == 12) { if (ch == '\r') aligned++; else aligned = 0; } else if (serialCount == 13) { if (ch == '\n') aligned++; else aligned = 0; } //println(ch + " " + aligned + " " + serialCount); serialCount++; if (serialCount == 14) serialCount = 0; } else It does not try to align to the 14-byte packet anymore but it seems to work.
  3. I am facing the same problem. Data is coming into processing but nothing moves. The model did move three times but that was only out of chance. It seems the synchronising part never really synchronizes and keeps going in a loop. I tried to your fix unisev but it didn't work for me... any ideas?
×
×
  • Create New...