Hello, I am trying to do UART communication between VMX-Pi and Ydlidar X2 Lidar Sensor, but the Uart port does not work.
Here is my code.
It works if you use frc::SerialPort::kUSB1 in the second argument value of the SerialPort class using USB to TTL.