Merge branch 'main' into 2027

This commit is contained in:
Peter Johnson
2025-07-21 18:38:43 -07:00
70 changed files with 10941 additions and 26 deletions

View File

@@ -757,8 +757,8 @@ public class PS4Controller extends GenericHID implements Sendable {
public void initSendable(SendableBuilder builder) {
builder.setSmartDashboardType("HID");
builder.publishConstString("ControllerType", "PS4");
builder.addDoubleProperty("L2", this::getL2Axis, null);
builder.addDoubleProperty("R2", this::getR2Axis, null);
builder.addDoubleProperty("L2 Axis", this::getL2Axis, null);
builder.addDoubleProperty("R2 Axis", this::getR2Axis, null);
builder.addDoubleProperty("LeftX", this::getLeftX, null);
builder.addDoubleProperty("LeftY", this::getLeftY, null);
builder.addDoubleProperty("RightX", this::getRightX, null);

View File

@@ -757,8 +757,8 @@ public class PS5Controller extends GenericHID implements Sendable {
public void initSendable(SendableBuilder builder) {
builder.setSmartDashboardType("HID");
builder.publishConstString("ControllerType", "PS5");
builder.addDoubleProperty("L2", this::getL2Axis, null);
builder.addDoubleProperty("R2", this::getR2Axis, null);
builder.addDoubleProperty("L2 Axis", this::getL2Axis, null);
builder.addDoubleProperty("R2 Axis", this::getR2Axis, null);
builder.addDoubleProperty("LeftX", this::getLeftX, null);
builder.addDoubleProperty("LeftY", this::getLeftY, null);
builder.addDoubleProperty("RightX", this::getRightX, null);

View File

@@ -687,8 +687,8 @@ public class XboxController extends GenericHID implements Sendable {
public void initSendable(SendableBuilder builder) {
builder.setSmartDashboardType("HID");
builder.publishConstString("ControllerType", "Xbox");
builder.addDoubleProperty("LeftTrigger", this::getLeftTriggerAxis, null);
builder.addDoubleProperty("RightTrigger", this::getRightTriggerAxis, null);
builder.addDoubleProperty("LeftTrigger Axis", this::getLeftTriggerAxis, null);
builder.addDoubleProperty("RightTrigger Axis", this::getRightTriggerAxis, null);
builder.addDoubleProperty("LeftX", this::getLeftX, null);
builder.addDoubleProperty("RightX", this::getRightX, null);
builder.addDoubleProperty("LeftY", this::getLeftY, null);