Describtion
- Use the old original way of Servo read read4ByteTxRx it takes 70ms to read 12 Servos and with Packet loss problem
- Use the syncread it takes 18ms to read 12 Servos and also with Packet loss problem
Solution
- It‘s a problem of some kinds of authority of Ubuntu16.04
- The following command before running the programm can solve the problem
echo 1 | sudo tee /sys/bus/usb-serial/devices/ttyUSB0/latency_timer
Perfomance after solving the problem
- Now we can read the 12 Servo in 3ms without packet loss
Describtion
Solution
echo 1 | sudo tee /sys/bus/usb-serial/devices/ttyUSB0/latency_timerPerfomance after solving the problem