Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
4c3813c
Merge pull request #21 from AZ-First/main
tbowers7 Dec 16, 2024
89a8a65
Power monitoring now works
tbowers7 Dec 20, 2024
c25f4bb
Adjust CI to run on PR's to both `main` and `develop`
tbowers7 Dec 20, 2024
56cfe9f
Merge pull request #23 from AZ-First/power_monitoring
tbowers7 Dec 20, 2024
694931a
Update vendoreps; fix Choreo
tbowers7 Dec 20, 2024
a495755
Update function calls deprecated in 2025
tbowers7 Dec 20, 2024
f9a95f3
Update to WPILib 2025.1.1-beta3; match AK updates
tbowers7 Dec 20, 2024
76cfc43
Cleanup from vendorlib bump
tbowers7 Dec 20, 2024
040b572
Latest photonlib
tbowers7 Dec 21, 2024
85d2dbc
Merge pull request #24 from AZ-First/vendor_choreo
tbowers7 Dec 21, 2024
3a53c03
Clean up where constants are defined
tbowers7 Dec 20, 2024
e2473f1
Consolidation of vision constants
tbowers7 Dec 20, 2024
702a55b
Combining and reorganizing constants
tbowers7 Dec 21, 2024
0e9df59
Late-breaking beta update
tbowers7 Dec 21, 2024
2b60d35
Updates from AdvantageKit since 19-Dec-2024
tbowers7 Dec 29, 2024
2d7c2be
Update vendordeps
tbowers7 Dec 29, 2024
12ba358
Clean up constants more
tbowers7 Dec 29, 2024
17efa75
Remove duplicative drive command
tbowers7 Dec 29, 2024
06d1d78
Merge pull request #25 from AZ-First/clean_constants
tbowers7 Dec 30, 2024
6ec382f
Update to 2025, WPILib 2025.1.1
tbowers7 Jan 2, 2025
0651ebc
Tie in CTRE Pro to all relevant places
tbowers7 Jan 2, 2025
5d3078d
Align drive commands with AK2025 templates
tbowers7 Jan 2, 2025
a3fba5e
Cleaning up drive commands
tbowers7 Jan 2, 2025
fe8c3f6
Add joystick slew rate limiter
tbowers7 Jan 2, 2025
38f6391
Update FRC year for WPILib kickoff release
tbowers7 Jan 2, 2025
1ad24e0
Updated install instructions
tbowers7 Jan 2, 2025
22eea3b
Revert to WPILib 2025.1.1-beta-3
tbowers7 Jan 3, 2025
4a0f6ec
Updating more vendordeps; WPILib 2025.1.1 Gold
tbowers7 Jan 5, 2025
2a95b2b
Conformal changes for Phoenix6 kickoff version
tbowers7 Jan 7, 2025
c637e49
More 2025 vendordep updates
tbowers7 Jan 10, 2025
18e5cc6
Apply TalonFX settings correctly
tbowers7 Jan 11, 2025
9844866
Merge pull request #28 from AZ-First/smooth_drive
tbowers7 Jan 11, 2025
133ba5e
Cleanup of unused things; set CTRE UNLICENSED
tbowers7 Jan 11, 2025
e099287
YAGSL vendorlib update
tbowers7 Jan 11, 2025
80d2201
Update to WPILib 2025.2.1
tbowers7 Jan 11, 2025
956718b
Merge pull request #29 from AZ-First/prep4release
tbowers7 Jan 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ updates:
- package-ecosystem: "github-actions"
# Workflow files stored in the default location of `.github/workflows`. (You don't need to specify `/.github/workflows` for `directory`. You can use `directory: "/"`.)
directory: "/"
labels:
- "github_actions"
schedule:
interval: "weekly"
interval: "monthly"

# Maintain dependencies for gradle
- package-ecosystem: "gradle"
Expand All @@ -20,4 +22,4 @@ updates:
labels:
- "gradle dependencies"
schedule:
interval: "monthly"
interval: "weekly"
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ name: CI
# events but only for the main branch.
on:
push:
branches: [ main ]
branches: [ main, develop ]
pull_request:
branches: [ main ]
branches: [ main, develop ]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand Down
30 changes: 30 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,36 @@
"spotlessGradle.format.enable": true,
"spotlessGradle.diagnostics.enable": false,
"java.import.gradle.annotationProcessing.enabled": false,
"java.completion.favoriteStaticMembers": [
"org.junit.Assert.*",
"org.junit.Assume.*",
"org.junit.jupiter.api.Assertions.*",
"org.junit.jupiter.api.Assumptions.*",
"org.junit.jupiter.api.DynamicContainer.*",
"org.junit.jupiter.api.DynamicTest.*",
"org.mockito.Mockito.*",
"org.mockito.ArgumentMatchers.*",
"org.mockito.Answers.*",
"edu.wpi.first.units.Units.*"
],
"java.completion.filteredTypes": [
"java.awt.*",
"com.sun.*",
"sun.*",
"jdk.*",
"org.graalvm.*",
"io.micrometer.shaded.*",
"java.beans.*",
"java.util.Base64.*",
"java.util.Timer",
"java.sql.*",
"javax.swing.*",
"javax.management.*",
"javax.smartcardio.*",
"edu.wpi.first.math.proto.*",
"edu.wpi.first.math.**.proto.*",
"edu.wpi.first.math.**.struct.*"
],
"editor.defaultFormatter": "richardwillis.vscode-spotless-gradle",
"[json]": {
"editor.defaultFormatter": "richardwillis.vscode-spotless-gradle"
Expand Down
2 changes: 1 addition & 1 deletion .wpilib/wpilib_preferences.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"enableCppIntellisense": false,
"currentLanguage": "java",
"projectYear": "2025beta",
"projectYear": "2025",
"teamNumber": 0
}
2 changes: 1 addition & 1 deletion AdvantageScope Swerve Calibration.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
}
}
],
"game": "2024 Field",
"game": "2025 Field",
"origin": "blue"
},
"controllerUUID": "psf0y633oclnjyocus23hcnq1d4tpyte",
Expand Down
61 changes: 47 additions & 14 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,26 @@ recommended to **not** select the "Include all branches" checkbox.

--------

### Setting up your new project
### Software Requirements

The Az-RBSI requires the [2025 WPILib Installer](
https://github.com/wpilibsuite/allwpilib/releases) (VSCode and associated
tools), 2025 firmware installed on all hardware (motors, encoders, power
distribution, etc.), the [2025 NI FRC Game Tools](
https://www.ni.com/en/support/downloads/drivers/download.frc-game-tools.html)
(Driver Station and associated tools), and the [2025 CTRE Phoenix Tuner X](
https://v6.docs.ctr-electronics.com/en/stable/docs/tuner/index.html). Take a
moment to update all software and firmware before attempting to load your new
robot project.

Please note that you need these _minimum_ versions of the following components:

* WPILib `2025.1.1`
* RoboRIO image `FRC_roboRIO_2025_v2.0`

**The Az-RBSI requires the 2025 WPILib Installer (VSCode and associated tools),
2025 firmware installed on all hardware (motors, encoders, power distribution,
etc.), the 2025 NI FRC Game Tools (Driver Station and associated tools), and
the 2025 CTRE Phoenix Tuner X. Take a moment to update all software and
firmware before attempting to load your new robot project.**
--------

### Setting up your new project

When your new robot code respository is created, it will have a single commit
that contains the entire Az-RBSI template for the current release. (See the
Expand All @@ -42,9 +55,19 @@ steps you need to complete:

1. Add your team number to the `.wpilib/wpilib_preferences.json` file. The
generic Az-RBSI template contains a team number "0", and your code will not
deploy properly if this variable is not set (*e.g.*, VSCode looks for the
RoboRIO on IP address `10.TE.AM.2`, and it will not find anything if it
tries to contact `10.0.0.2`.)
deploy properly if this variable is not set (*i.e.*, since VSCode looks for
the RoboRIO on IP address `10.TE.AM.2`, it will not find anything if it
tries to contact `10.0.0.2`.) If you forget to change this value, you will
get an error message when deploying code to your robot like:

```
Missing Target!
=============================================
Are you connected to the robot, and is it on?
=============================================
GradleRIO detected this build failed due to not being able to find "roborio"!
Scroll up in this error log for more information.
```

2. If you have an all-CTRE swerve base (*i.e.*, 8x TalonFX-controlled motors,
4x CANCoders, and 1x Pigeon2), use Phoenix Tuner X to create a swerve
Expand Down Expand Up @@ -76,14 +99,24 @@ method are encouraged to submit bug reports and code fixes to the [Az-RBSI
repository](https://github.com/AZ-First/Az-RBSI).

6. The Az-RBSI expects an Xbox-style controller -- if you have a PS4 or other,
change this at the top of the `RobotContainer.java` file in the
`src/main/java/frc/robot` directory.

7. Power ports...
substitute the proper command-based controller class for
`CommandXboxController` near the top of the `RobotContainer.java` file in
the `src/main/java/frc/robot` directory.

7. Power monitoring by subsystem is included in the Az-RBSI. In order to
properly match subsystems to ports on your Power Distribution Module,
carefully edit the `CANandPowerPorts` of `Constants.java` to include the
proper power ports for each motor in your drivetrain, and include any
motors from additional subsystems you add to your robot. To include
additional subsystems in the monitoring, add them to the [`m_power`
instantiation](
https://github.com/AZ-First/Az-RBSI/blob/38f6391cb70c4caa90502710f591682815064677/src/main/java/frc/robot/RobotContainer.java#L154-L157) in the `RobotContainer.java` file.

8. All of the constants for needed for tuning your robot should be in the
`Constants.java` file in the `src/main/java/frc/robot` directory. This file
should be thoroughly edited to match the particulars of your robot.
should be thoroughly edited to match the particulars of your robot. Be sure
to work through each section of this file and include the proper values for
your robot.


--------
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,8 @@ effective logging for troubleshooting.
* [PhotonVision](https://docs.photonvision.org/en/latest/) / [Limelight](
https://docs.limelightvision.io/docs/docs-limelight/getting-started/summary)
-- Robot vision / tracking

## Further Reading

For tips on command-based programming, see this post:
https://bovlb.github.io/frc-tips/commands/best-practices.html
2 changes: 1 addition & 1 deletion WPILib-License.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2009-2024 FIRST and other WPILib contributors
Copyright (c) 2009-2025 FIRST and other WPILib contributors
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id "java"
id "edu.wpi.first.GradleRIO" version "2025.1.1-beta-2"
id "edu.wpi.first.GradleRIO" version "2025.2.1"
id "com.peterabeles.gversion" version "1.10.3"
id "com.diffplug.spotless" version "6.25.0"
id "io.freefair.lombok" version "8.11"
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pluginManagement {
repositories {
mavenLocal()
gradlePluginPortal()
String frcYear = '2024'
String frcYear = '2025'
File frcHome
if (OperatingSystem.current().isWindows()) {
String publicFolder = System.getenv('PUBLIC')
Expand Down
Loading
Loading