Skip to content

A part of robot control code, using thread to read/write a serial asynchronously.

Notifications You must be signed in to change notification settings

Wujh1995/Asynchronous-Serial-Read-Write

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Below is the compile command in terminal

$ g++ main.cpp -o car_ctrl -lpthread


Below is the run command

$ ./car_ctrl

Below is the control key and effect

'w' : Speed up (Slow down when running backward)
's' : Speed down (Fast up when running backward)
'a' : Turn left
'd' : Turn right
't' : Stop

About

A part of robot control code, using thread to read/write a serial asynchronously.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages