wireless working
This commit is contained in:
+4
-4
@@ -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("");
|
||||
|
||||
Reference in New Issue
Block a user