Provides drivers for USART, USB, 2-3 wire motors, time functions on ESP32 / AVR / STM32 / X86.
Set up the build following an example from cmake-helpers project.
The class creates two serial devices using socat utility. PseudoTTY is useful for testing serial client or server. The unit tests for Usart class use it for similating serial ports.
The class provides an interface for communication over serial connection. Each read/write is configured to time out if the operation doesn't complete within a specified window. The code uses Boost ASIO library.
usart_test.cpp contains unit tests for Usart class.
Class functionality is similar to Usart but using termios library.
usart_termios_test.cpp contains unit tests for Usart class.
The class provides an interface to transfer data over USB connection.
The class provides an interface for communication over serial connection.
The class can drive a motor that uses three wires for direction and speed control.
The class can drive a motor that uses two wires for direction and speed control.
The class can drive a motor that uses three wires for direction and speed control.
The class calculates range in millimeters from an ADC sample of MaxSonar ultrasonic range finder.
The class counts the number of clicks that a virtual wheel moved forward and backward.