Skip to content

2026 cleanup PR#26

Open
rwlee wants to merge 3 commits intomainfrom
rwlee/lib2026
Open

2026 cleanup PR#26
rwlee wants to merge 3 commits intomainfrom
rwlee/lib2026

Conversation

@rwlee
Copy link
Collaborator

@rwlee rwlee commented Jan 31, 2026

Probably should have split this up into a copyright PR and other PR, oops

Bump copyright year, adapt to some 2026 library changes (namely CANBus conventions in phoenix 6), fix some leftover 2025 formatting and TODOs

TODO: add advantage scope CANBus logging

@rwlee rwlee requested review from a team as code owners January 31, 2026 05:13
@rwlee rwlee requested review from AustinSchuh, alisonsoong and anika-kum and removed request for alisonsoong January 31, 2026 05:13
import java.util.Map;

/**
* Tagalong CANBus manager instance manager, only CTRE devices are currently registered or supported
Copy link
Collaborator

Choose a reason for hiding this comment

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

Tagalong CANBus instance manager

/**
* Map of all instances with a CTRE device registered to them
*/
private static final Map<String, CANBus> _ctreCANBus = Map.of();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Using Map.of() with no parameters creates an UnsupportedOperationException when we try to put stuff in it on line 25

https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Map.html#unmodifiable

private static final Map<String, CANBus> _ctreCANBus = new HashMap<>()

table.put("ElevatorAppliedVolts", elevatorAppliedVolts);
table.put("ElevatorCurrentAmps", elevatorCurrentAmps);
table.put("ElevatorHeightM", elevatorHeightM, "meters");
table.put("ElevatorVelocityMPS", elevatorVelocityMPS, "meters/second");
Copy link
Collaborator

Choose a reason for hiding this comment

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

mps? (I think?)

table.put("PivotAppliedVolts", pivotAppliedVolts);
table.put("PivotCurrentAmps", pivotCurrentAmps);
table.put("PivotPositionRot", pivotPositionRot, "rotations");
table.put("PivotVelocityRPS", pivotVelocityRPS, "rotations/second");
Copy link
Collaborator

Choose a reason for hiding this comment

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

rps? (I think?)

table.put("RollerAppliedVolts", rollerAppliedVolts);
table.put("RollerCurrentAmps", rollerCurrentAmps);
table.put("RollerPositionRot", rollerPositionRot, "rotations");
table.put("RollerVelocityRPS", rollerVelocityRPS, "rotations/second");
Copy link
Collaborator

Choose a reason for hiding this comment

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

rps? (I think?)

> `(WPILibVersion in format YYYY.MajorMinor).MMDD`

For example, a TagalongLib release on January 1st, 2025 using WPILib version 2024.1.0 would be version `2025.10.0101`.
For example, a TagalongLib release on January 1st, 2026 using WPILib version 2024.1.0 would be version `2026.10.0101`.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Oops..

@anika-kum anika-kum requested a review from jkuszmaul February 9, 2026 05:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants