Comparing Serial Input to Serial Data

Hello there

I have a question regarding the serial terminal.
So in the project I am currently working on, I try to drive to a specific location with my robot which is given by another device. So right know I have that the device is sending my the timestamp, x-,y- and z-coordinate of where I am currently at and in a new line in the Serial Terminal is the new location etc.
All numbers are rational numbers.
My goal is to choose a x/y coordinate relatively to the device and let the robot drive there. So the robot "knows" where he is right know but he doesn't know where he has to go yet.

But my questions is, how can I put a x- AND y- coordinate in the serial terminal and compare it with the coordinates I am constantly getting. A friend did programm that I can see the data in the serial terminal. In the attachments you can see the code I have right know I didn't include any of the robots movements.

ReadPLT.ino (921 Bytes)

But my questions is, how can I put a x- AND y- coordinate in the serial terminal and compare it with the coordinates I am constantly getting.

The input to that program is coming from the serial port. What application is sending the data? You can NOT have that application AND the Serial Monitor application open at the same time.

PaulS:
The input to that program is coming from the serial port. What application is sending the data? You can NOT have that application AND the Serial Monitor application open at the same time.

The data is being send via an EPS-Wroom-32

As your device seems to be sending at 9600 baud you could use SoftwareSerial for that connection and keep pins 0 and 1 (and HardwareSerial) free for communication with the Serial Monitor.

...R

Robin2:
As your device seems to be sending at 9600 baud you could use SoftwareSerial for that connection and keep pins 0 and 1 (and HardwareSerial) free for communication with the Serial Monitor.

...R

ty I will try that