My team has recently switched to MK4 swerve modules and we’re having some trouble with the Xbox controller. In the Swerve drive specialties example code (and every example code that I’ve come across on Chiefdelphi), the way you get the double value is
double forwardback = -modifyAxis(m_controller.getY(GenericHID.Hand.kLeft)) * DrivetrainSubsystem.MAX_VELOCITY_METERS_PER_SECOND;
The issue I’m having is GenericHID.Hand.kLeft doesn’t exist. In fact, if you were to go into the GenericHID.class file, there is no enum called Hand, and kLeft/kRight don’t exist. How am I supposed to get the axis values of the Xbox controller if these don’t exist? If I am missing something, please let me know. Thanks!