Motoren ohne delay per BT steuern

Mit const int NUMBER_OF_FIELDS = 9; gebe ich doch die Anzahl der kommaseparierte Felder an.
In meinem Beispiel sind es immer 9. auch wenn es zwei oder dreistellige Ziffern sind.

ich hatte den Empfgang per Bluetooth aus diesem Beispiel

// Receive multiple numeric fields using Arduino 1.0 Stream parsing

const int NUMBER_OF_FIELDS = 3; // how many comma-separated fields we expect
int fieldIndex = 0;             // the current field being received
int values[NUMBER_OF_FIELDS];   // array holding values for all the fields


void setup()
{
  Serial.begin(9600); // Initialize serial port to send and receive at 9600 baud
}

void loop()
{

  if( Serial.available()) {
    for(fieldIndex = 0; fieldIndex  < 3; fieldIndex ++)
    {
      values[fieldIndex] = Serial.parseInt(); // get a numeric value

    }
    Serial.print( fieldIndex);
    Serial.println(" fields received:");
    for(int i=0; i <  fieldIndex; i++)
    {
       Serial.println(values[i]);
    }
    fieldIndex = 0;  // ready to start over
  }
}

Quelle: 4. Serial Communications - Arduino Cookbook, 2nd Edition [Book]