Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AdvantageKit, REV Spark MAX logging #17

Merged
merged 4 commits into from
Feb 21, 2024

Conversation

garrettsummerfi3ld
Copy link
Member

@garrettsummerfi3ld garrettsummerfi3ld commented Feb 14, 2024

Added

Added AdvantageKit for extra diagnostics and logging for the robot. This will help hook into the AdvantageScope tool for WPILib.

Added a Git metadata information task for each Gradle build, such as the commit SHA, the date of the build, the branch, and if the build was dirty (has changes not committed). This requires the installation of the Git CLI and be available on the systems or users PATH.

Since REV does not provide an official method of automatically recording data from the Spark Max and Spark Flex, we have provided an unofficial alternative for Java and C++ called URCL (Unofficial REV-Compatible Logger). This enables live plotting and logging of all devices similar to CTRE's Tuner X plotting feature and Phoenix 6 signal logger.

Fixed

Fixed issue where formatting failed a build. This will now perform the formatting on all builds, including deploy jobs.

Changed

Changed around some of the Constants of CAN IDs to just point to a new HardwareConstants class rather than having subclasses for each "subsystem."

Added AdvantageKit for extra diagnostics and logging for the robot. This will help hook into the AdvantageScope tool for WPILib.

Added a Git metadata information task for each Gradle build, such as the commit SHA, the date of the build, the branch, and if the build was dirty (has changes not committed). This requires the installation of the Git CLI and be available on the PATH.

Fixed issue where formatting failed a build. This will now perform the formatting on all builds, including deploy jobs.
Since REV does not provide an official method of automatically recording data from the Spark Max and Spark Flex, we have provided an unofficial alternative for Java and C++ called URCL (Unofficial REV-Compatible Logger). This enables live plotting and logging of all devices similar to CTRE's Tuner X plotting feature and Phoenix 6 signal logger.

Power Distribution Hub is also now logged in AdvantageKit.
@garrettsummerfi3ld garrettsummerfi3ld marked this pull request as ready for review February 16, 2024 01:24
@garrettsummerfi3ld garrettsummerfi3ld added the enhancement New feature or request label Feb 16, 2024
Copy link
Member

@EuphoniumPlayer EuphoniumPlayer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ignore me (as in this comment)

Copy link
Member

@EuphoniumPlayer EuphoniumPlayer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure it works on the bot first, as with any changes. If it works, do it.

Fixed an issue where if not provided a log of a match during robot simulation, the software would crash. This now is handled with just running the simulation as normal without a replay. There is no current logic for how to feed information into the simulator at the moment.

Added metadata for robot software. This includes runtime type such as a simulation or a real robot, as well as Git information such as the commit SHA, the build date, the commit date, branch, and whether or not if there are files not committed to the repository.
@garrettsummerfi3ld garrettsummerfi3ld added the dependencies Pull requests that update a dependency file label Feb 18, 2024
Updated AdvantageKit from 3.0.2 to 3.1.0

Updated URCL from 2024.0.1 to 2024.1.0
@garrettsummerfi3ld garrettsummerfi3ld merged commit 8006eaa into main Feb 21, 2024
4 of 6 checks passed
@garrettsummerfi3ld garrettsummerfi3ld deleted the feature/advantagekit branch February 21, 2024 03:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants