← Back to Main Portfolio

encoder.py

Purpose

Defines the encoder class used to read wheel position and velocity while handling timer wraparound.

Main Role

This file supports the overall robot system by providing one focused piece of functionality. It is not necessarily the main behavior coordinator, but it contributes to the system’s organization, reproducibility, and maintainability.

Why This File Matters

Although this file is more specialized than the major runtime tasks, it still plays an important role in making the full project complete, understandable, and easier to test or maintain.

Open raw encoder.py file