Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

# Team 281 2027 Swerve Drive Only Drive-only FRC Java robot project for Team 281. This is a minimal WPILib swerve implementation with no shooter, intake, autonomous routine, vision, or other robot mechanisms. ## 2027 status and software versions - Targets WPILib / GradleRIO `2027.0.0-alpha-8` and Java 25. - As of November 9, 2026, this is a prerelease target. Alpha 8 supports most Alpha 7 vendordeps, but WPILib explicitly says Beta 1 will break vendor dependency compatibility. Systemcore image 14+ and FIRST Driver Station Alpha 7+ are called out for Alpha 8. - No vendor library is included. The 2026 code repository link in the supplied reference could not be accessed, and the only available prior conversation contained no hardware or control details. Consequently this project does not claim to preserve an unverified motor, encoder, gyro, or controller configuration. - The code uses the published WPILib `Robot::new` startup pattern and WPILib math/kinematics. Recheck the project import process and vendor compatibility when the 2027 beta and final release are published. ## Explicit hardware assumptions The example adapter assumes eight PWM motor-controller inputs, four DIO quadrature wheel encoders, four analog absolute steering sensors with 0–5 V representing one rotation, and an MXP SPI ADXRS450 gyro. It is useful as a wiring-neutral starting point only if that interface matches the chassis. CAN motor controllers, integrated encoders, CAN absolute encoders, or a Pigeon/navX require replacing `SwerveModule` / gyro construction with the correct vendor adapter and 2027 vendordep. All channels, inversions, module geometry, ratios, sensor offsets, limits, and starter gains are centralized in `Constants.java`. The PWM/DIO/analog assignments and values are examples, not measurements from Team 281. Confirm the actual wheelbase, track width, encoder counts per motor rotation, reduction, steering sensor direction and zero, motor direction, gyro type, and controller assignment before operating. ## Default driver controls - USB controller 0. - Left stick Y/X commands forward/left translation; right stick X commands rotation. - Right bumper temporarily switches to robot-relative driving; otherwise translation is field-relative. - Start resets gyro heading. - Autonomous, disabled, and test modes command zero output. Axes are normalized, deadbanded at 0.08, then scaled to the configured maximum speeds. Field-relative assumes the gyro reports zero when the robot faces the field's forward direction. Test with wheels raised and low power first. ## Build and deploy Open/import this folder using the installed 2027 WPILib toolchain. The environment currently has Java 17, while WPILib 2027 requires Java 25, so this checkout cannot be compiled here with the available JDK. A Gradle wrapper is not included; use the Gradle installation bundled with the matching WPILib release. Set the roboRIO team number if it differs from 281, and recheck all hardware assumptions before deployment. ## Reference links - [WPILib 2027 overview and changelog](https://docs.wpilib.org/en/latest/docs/yearly-overview/index.html) - [WPILib 2027 Alpha 8 release notes](https://github.com/wpilibsuite/allwpilib/releases/tag/v2027.0.0-alpha-8) - [Systemcore Phoenix 6 compatibility notes](https://github.com/wpilibsuite/SystemCoreTesting/blob/main/CTR-Phoenix.md) - The supplied team code pointer: [entech281/Robot2026](https://github.com/entech281/Robot2026) # Drive_2027

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages