wireless working

This commit is contained in:
2019-05-26 22:58:04 +02:00
parent ee57e22b26
commit c3958b5eec
4 changed files with 26 additions and 49 deletions
+4 -4
View File
@@ -19,23 +19,23 @@ dataStruct2 GetSerialData(dataStruct2 dataIn, bool debug = false)
angle = data_word.substring(data_word.indexOf('_') + 1);
if (isDigit(angle[0])) // prevent error overwriting first entry.
// dataIn.servoPositions[channel.toInt()] = angle.toFloat();
dataIn.servoPositions[channel.toInt()] = angle.toFloat();
index = next_index + 1;
} while ((next_index != -1) && (next_index < maxIndex));
// dataIn.remotePasstroughControl = true;
dataIn.remotePasstroughControl = true;
if (debug)
{
Serial.println("Enabled Servo Passtrough mode!");
Serial.println("Output line: ");
for (int i = 0; i < 18; i++)
{
Serial.print(i);
Serial.print(", ");
// Serial.print(dataIn.servoPositions[i]);
Serial.print(dataIn.servoPositions[i]);
Serial.println("");
}
Serial.println("");