Skip to content

frc2204/frc-2023

Repository files navigation

frc-2023

CI

This is the code for the 2023 season of the FIRST Robotics Competition. It is written in Kotlin with Java interoperability and uses the WPILib library. This project requires Kotlin 1.8+, Kotlin Serialization 1.8+, GradleRIO 2023.4.1+

Robot Features

Drivetrain

The drivetrain this year features 4 West Coast Products Swerve X modules, in the flipped Gears Below configuration. Each module is controlled with 2 Talon 500 motors along with a CTRE Mag Encoder (CANCoder) for swerve module angle.

Arm

The arm this year consists of two joints, each powered by a NEO.

Requirements

In order to build and deploy the code, you must have the WPILib toolchain installed. You can find instructions for installing the toolchain here.

IntelliJ IDEA

Intellisense within the native WPI VSCode is limited, and therefore our team has opted to use IntelliJ IDEA, featuring better support for Kotlin and WPILib. You can download it here along with the FRC plugin here.

Build and Deploy

In the .run directory, there are two run configurations for IntelliJ IDEA. One is for building the code and the other is for deploying the code to the robot. You can run these configurations by clicking the green arrow next to the configuration name.

For WPI VS Code, you can build the code by running ./gradlew build in the terminal. You can deploy the code by running ./gradlew deploy in the terminal.