Skip to content

WPILib MecanumDriveKinematics crashes robot controller #220

@tgb20

Description

@tgb20

Describe the bug
Using the example code from the documentation for using WPILib Kinematics causes the robot controller app to crash. This is using a version of the library that was compiled and then imported in OnBotJava. The program successfully compiles and other functions of FTCLib like motor control and inputs work correctly.

To Reproduce
Steps to reproduce the behavior:

  1. Compile and import FTCLib into OnBotJava
  2. Make a new program containing the example code:
// Locations of the wheels relative to the robot center.
Translation2d m_frontLeftLocation =
  new Translation2d(0.381, 0.381);
Translation2d m_frontRightLocation =
  new Translation2d(0.381, -0.381);
Translation2d m_backLeftLocation =
  new Translation2d(-0.381, 0.381);
Translation2d m_backRightLocation =
  new Translation2d(-0.381, -0.381);

// Creating my kinematics object using the wheel locations.
MecanumDriveKinematics m_kinematics = new MecanumDriveKinematics
(
  m_frontLeftLocation, m_frontRightLocation,
  m_backLeftLocation, m_backRightLocation
);
  1. Compile the program
  2. Init the program and see it crash

Expected behavior
The program runs successfully

Additional context
This is using the latest drive station and robot controller apps and FTCLib 2.0. I can get a log dump in the future but I don't currently have access.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwontfixThis will not be worked on

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions