Drones communicate via serial links at 57600 or 921600 baud. A top-level serial FD setup ensures no lost telemetry frames over 1km range.

: For data transfer between the microcontroller and the Linux system. The microcontroller could be connected to a serial port on the Linux system.

struct timeval timeout = 1, 0; // 1 sec timeout int ret = select(serial_fd + 1, &read_fds, NULL, NULL, &timeout); if (ret > 0 && FD_ISSET(serial_fd, &read_fds)) char buf[4096]; int n = read(serial_fd, buf, sizeof(buf)); // process data

Disponible para Amazon Prime