The Robotics Catalyst Foundation
DonatePublicly available resources to assist robotics teams.
This is a Java class designed to combine an Axon Servo with its built in Analog Encoder, enabling precise run-to-position functionality similar to the built in functionality for DC motors. Key Features:

GamepadPair is a Java utility class designed for FTC robotics programming, providing an useful interface for handling multiple gamepads with features like: โ Button State Management โ Detects button presses, holds, and releases with debounce filtering. โ Joystick & Trigger Support โ Reads precise values from both joysticks and triggers. โ Debounce Handling โ Customizable debounce times to prevent accidental double presses. โ LED Control โ Changes LED colors on supported gamepads. โ Rumble Feedback โ Supports short and long rumbles with custom effects.

PID Drive Logic is a specialized control algorithm for SPIKE Prime robots, providing high-precision navigation and path correction through the following features: โ Real-Time Path Correction โ Utilizes Proportional (Kpโ) control to eliminate drift and maintain perfectly straight lines. โ Precision Rotation โ Implements dynamic deceleration as the robot approaches target headings to prevent overshooting. โ Linear Accuracy โ Uses refined motor encoders to drive and turn in exact inches or degrees for consistent mission mapping. โ Environmental Consistency โ Maintains uniform performance regardless of battery voltage fluctuations or mat friction variations.