Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

USBInterface/UARTInterface

+read(endpointId): Issues a read command in either serial (UART) or pyusb (USB). EndpointId can be the specific serial port to use or the usb endpoint to be used.

+write(endpointId, data): Issues a write command in either serial or pyusb. Data parameter should be a buffer.

+create_endpoint_FC(): Returns a new endpoint, either a Serial object (UART) or Endpoint object (USB), that points to our flightcontroller.

-endpoints: Array of dicts Dictionary {endpointId: endpoint object (Serial object or Endpoint object)}. The first one is populated by calling the create_endpoint_FC() function in the constructor.

...

Exposes functionality to the worker function. Should just have get_pogi() and get_pigo() functions.

Reference

Exchanged Data

USB Protocol Overview

PyUSB implementation overview (see here for what the Endpoint object is etc.)

Jetson Nano UART overview

https://pyserial.readthedocs.io/en/latest/pyserial.html#overview