Closed StarDylan closed 2 years ago
Finished. Please check pull request when available :).
Could you open the pull request @3LucasZ
Is the problem not fixed yet @StarDylan ? Branch "limelight_tuning_file_exception_fix" was merged yesterday.
Yeah it still throws the error @3LucasZ, I'll get another stack trace today
New Stack Trace
2.00] Feb 23, 2022 1:55:27 PM frc.robot.subsystems.SwerveDrive <init>
[2.00] INFO: Swerve Drive Modules Initialized
[2.07] Feb 23, 2022 1:55:27 PM frc.robot.helper.FileUtil createFileIfDoesNotExist
[2.07] WARNING: No such file or directory
[2.08] java.io.IOException: No such file or directory
[2.08] at java.base/java.io.UnixFileSystem.createFileExclusively(Native Method)
[2.08] at java.base/java.io.File.createNewFile(Unknown Source)
[2.08] at frc.robot.helper.FileUtil.createFileIfDoesNotExist(FileUtil.java:44)
[2.08] at frc.robot.helper.FileUtil.readObjectFromFile(FileUtil.java:28)
[2.08] at frc.robot.helper.Limelight.readCorrectorFromFile(Limelight.java:104)
[2.08] at frc.robot.helper.Limelight.init(Limelight.java:34)
[2.08] at frc.robot.RobotContainer.<init>(RobotContainer.java:60)
[2.08] at frc.robot.Robot.robotInit(Robot.java:28)
[2.08] at edu.wpi.first.wpilibj.TimedRobot.startCompetition(TimedRobot.java:107)
[2.08] at edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:373)
[2.08] at edu.wpi.first.wpilibj.RobotBase.startRobot(RobotBase.java:463)
[2.08] at frc.robot.Main.main(Main.java:27)
[2.09]
[2.26] Feb 23, 2022 1:55:27 PM frc.robot.helper.FileUtil readObjectFromFile
[2.26] WARNING: frc.robot.helper.Polynomial; local class incompatible: stream classdesc serialVersionUID = 1130994487598520223, local class serialVersionUID = -6149684540517266987
[2.26] java.io.InvalidClassException: frc.robot.helper.Polynomial; local class incompatible: stream classdesc serialVersionUID = 1130994487598520223, local class serialVersionUID = -6149684540517266987
[2.26] at java.base/java.io.ObjectStreamClass.initNonProxy(Unknown Source)
[2.26] at java.base/java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
[2.26] at java.base/java.io.ObjectInputStream.readClassDesc(Unknown Source)
[2.26] at java.base/java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
[2.26] at java.base/java.io.ObjectInputStream.readObject0(Unknown Source)
[2.26] at java.base/java.io.ObjectInputStream.readObject(Unknown Source)
[2.26] at java.base/java.io.ObjectInputStream.readObject(Unknown Source)
[2.26] at frc.robot.helper.FileUtil.readObjectFromFile(FileUtil.java:32)
[2.26] at frc.robot.helper.Limelight.readCorrectorFromFile(Limelight.java:104)
[2.26] at frc.robot.helper.Limelight.init(Limelight.java:34)
[2.26] at frc.robot.RobotContainer.<init>(RobotContainer.java:60)
[2.26] at frc.robot.Robot.robotInit(Robot.java:28)
[2.26] at edu.wpi.first.wpilibj.TimedRobot.startCompetition(TimedRobot.java:107)
[2.26] at edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:373)
[2.26] at edu.wpi.first.wpilibj.RobotBase.startRobot(RobotBase.java:463)
[2.27] at frc.robot.Main.main(Main.java:27)
Wow, I remember when we had the test class for the limelight autocorrection function everything worked well. I will try to fix this again tomorrow or Friday.
Is it throwing the error because of the existence of the classes I created or is somebody trying to call LimelightAutocorrectCommand and this happens?
I ran a unit test: robot.helper.PolynomialTest > checkPolynomialIO PASSED
Weird, when you come in, you can check out the files on the robot, worst case we just hard-code the polynomial.
Hm okay
If it can't find a file it should just send a warning and not throw an exception.