IanSzalai / SuperSwerve

Swerve template project which uses the SuperCORE library
Other
0 stars 1 forks source link

simulation crashing on enable #15

Open IanSzalai opened 1 year ago

IanSzalai commented 1 year ago
Warning at edu.wpi.first.wpilibj.DriverStation.reportJoystickUnpluggedWarning(DriverStation.java:1489): Joystick Button 3 on port 0 not available, check if controller is plugged in
Error at frc.robot.commands.getInRangeOfTag.<init>(getInRangeOfTag.java:35): Unhandled exception: java.lang.NoSuchMethodError: 'double edu.wpi.first.math.Vector.dot(edu.wpi.first.math.Vector)'
        at edu.wpi.first.math.geometry.Quaternion.times(Quaternion.java:82)
        at edu.wpi.first.math.geometry.Translation3d.rotateBy(Translation3d.java:141)
        at edu.wpi.first.math.geometry.Transform3d.<init>(Transform3d.java:40)
        at frc.robot.commands.getInRangeOfTag.<init>(getInRangeOfTag.java:35)
        at frc.robot.RobotContainer.configureButtonBindings(RobotContainer.java:35)
        at frc.robot.RobotContainer.<init>(RobotContainer.java:28)
        at frc.robot.Robot.robotInit(Robot.java:38)
        at edu.wpi.first.wpilibj.TimedRobot.startCompetition(TimedRobot.java:107)
        at edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:373)
        at edu.wpi.first.wpilibj.RobotBase.lambda$startRobot$0(RobotBase.java:443)
        at java.base/java.lang.Thread.run(Thread.java:829)

this only happens on my desktop computer and likely has something to do with the install of WPILIB. It is 2022.4.1. Build is fine

ACat701 commented 1 year ago

It looks like its failing at this specific line in the Quaternion class since it can't find Vector.dot: return new Quaternion(r1 * r2 - v1.dot(v2), v.get(0, 0), v.get(1, 0), v.get(2, 0));

This is kinda funny since I was literally looking for that method like, 2 days ago and couldn't find it so I haven't looked into it much yet, but it also fails on my laptop

IanSzalai commented 1 year ago

photonvision/wpilib bug, won't fix

IanSzalai commented 1 year ago

isn't happening to me anymore